That is to say, after the page load encounters my HTML or JAVASCRIPT instructions, the following ones will no longer be displayed. How should I write it?
Then hide the ones behind it
Well, use styles to hide everything behind it
It’s not a style sheet! ! ! It means that the content after executing this command will no longer be displayed. I don’t know what the content behind it is in advance, and it may change! ! !
Add a pair of <script></script> tags where you need to judge, and write the JS judgment and the HTML code to be loaded in the middle of the pair of tags.
This request has no practical meaning.
If it is your own normal page and you want it not to be displayed, wouldn't it be better to control the output directly on the server side?
If you expect to insert any character at any position and have the browser stop parsing, that is impossible
HTML is a markup language. If the browser stops at any position, it may be after the mark Half of it has not come out, and the front part cannot be displayed.
It is also impossible to insert js. If js is executed immediately, it can only be executed on the object it can obtain (that is, the previous object). Operation, it is impossible to operate the
of the element behind it