Use JavaScript to dynamically comment out HTML code

Source: Internet
Author: User

<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312 "> <br/> <Table border =" 1 "width =" 100% "> <tr> <TD width =" 50% "> 1 </TD> <TD width = "50%"> 2 </TD> </tr> <p> <br/> <tr> <TD width = "50%"> 3 </TD> <TD width = "50%"> 4 </TD> </tr> <p> <br/> <tr> <TD width = "50%"> 5 </TD> <TD width = "50%"> 6 </TD> </tr> <p> <br/> <tr> <TD width = "50%"> 7 </TD> <TD width = "50%"> 8 </TD> </tr> </table> <p> No 34 cells are displayed, because he commented it out in Javascript, how did he do it? View Source file! What are the source files? Right-click and select "View Source file (v )"... </P> <P style = "color: red;"> note: HTML comments <SPAN class = 'wp _ keywordlink'> Code </span> "<! --> ", <SCRIPT> and </SCRIPT> are not allowed." <! -- "And" // --> "</P> <p> in addition to this method, you can also use document. getelementbyid ("XX "). style = "NONE"; this method dynamically displays or hides a region </P> <p>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.