Home > Web Front-end > HTML Tutorial > How to prevent the content behind the tag from being displayed?_html/css_WEB-ITnose

How to prevent the content behind the tag from being displayed?_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:09:32
Original
1749 people have browsed it

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?


Reply to the discussion (solution)

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
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template