JS How to terminate the browser page HTML parsing ah?
Title
<meta http-equiv= "Content-type" C/>
<title> Untitled Document </title>
<script language= "javascript" type= "Text/javascript" >
How to write this in order to let the browser no longer parse and run the following table and all the code AH
</script>
<body>
<table width= "90%" border= "0" cellspacing= "0" cellpadding= "0" >
<tr>
<td>1</td>
<td>2</td>
</tr>
<tr>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>5</td>
<td>6</td>
</tr>
<tr>
<td>7</td>
<td>8</td>
</tr>
</table>
</body>
Copy Code code as follows:
ie with Document.execcommand ("Stop")
FF with Window.stop ();
<ptml> <pead> <meta http-equiv= "Content-type" content= "text/html; charset=gb2312 "/> <title> test </title> </pead> <body> <script language=" JavaScript " > Function Mystop () {if (!! (window.attachevent &&!window.opera)) {Document.execcommand ("Stop");} else {window.stop ();} } mystop (); </script> just don't come out. </body> </ptml>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
Window.attachevent &&!window.opera is used to determine whether IE is! Found it from the prototype!
In fact, I really do not understand. This is how to judge!
Just like that if window. XMLHttpRequest) The same!
But nothing to see prototype harvest or a lot of!