js怎么终止浏览器对页面HTML的解析啊? 如题 <html> <head> <meta http-equiv="Content-Type" c /> <title>无标题文档</title> </head> <script language="javascript" type="text/javascript"> //这里面要怎么写才能让浏览器不再解析和运行后面的表格和所有代码啊 </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> </html> 复制代码 代码如下:IE下用document.execCommand("stop") FF下用window.stop();
测试一下
就是不出来。
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]window.attachEvent && !window.opera是用来判断是否IE的!从Prototype里找出来的! 其实我还真不理解。。这是怎么判断的! 就像那个if(window.XMLHttpRequest)一样! 不过没事看看Prototype收获还是不少的!
推荐阅读
当鼠标移出灰色区域时候,菜单项怎么隐藏起来
无标题文档
*{margin:10px; padding:0}
#nav{border:#ccc 1px solid; height:25px; width:198px; text-align:center; line-height:25px; margin-bottom:0}
#hover{
position:absolute;
height:1>>>详细阅读
本文标题:用js实现终止浏览器对页面HTML的继续解析即停止解析 兼容firefox
地址:http://www.17bianji.com/kaifa2/JS/29989.html
1/2 1