<!--/* scripts and Web pages share the same file test power by Dron 2006-4-20 Here's the writing is HTML and JS Common annotation, will be skipped by these two parsers, can be used as comments for full-text files *///-->/* <!--here is the equivalent of JS annotation, but HTML will be parsed. --> <ptml> <pead> <meta http-equiv= "Content-type" content= "text/html"; charset=gb2312 "> <meta http-equiv=" content-language "content=" ZH-CN "> <title> scripts and Web pages share the same file test &L t;/title> <style type= "Text/css" > body {font-size:1px; Color: #fff; } #body {font-size:12px; Color: #000; </style> </pead> <body> <div id= "Body" > Script and Web page share the same file Test </div> <script type= "Text/javascript" src= "?" ></script> </body> </ptml>/<!--//This is an HTML annotation that is skipped when parsing html, but inside The JS script will still be executed, please note the pop-up belowThe dialog box. Alert ("See the effect?") "); -->
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]