A record of a function that uses js to terminate the browser's continued parsing of the page's HTML. This function will be compatible with OPERA, FIREFOX, OPEAR and other browsers. It has a certain effect in processing malicious code at the bottom of the page and can achieve the purpose of not affecting the page effect. .
program code
<script language="JavaScript">
<!--
function bestop(){
if(!(window.attachevent || window.opera)){
document.execCommand("stop");
}else{
window.stop();
}
}
//-->
bestop(); //The browser stops the parsing operation
</script>
<!-- This will not be displayed. -->
Terminate the browser's parsing of the page's HTML code (compatible with code recording)