tor洋葱浏览器安卓版:谁可以解释一下这段代码

来源:百度文库 编辑:高校问答 时间:2024/04/29 11:41:26
<SCRIPT language=JavaScript type=text/JavaScript>
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</SCRIPT>

其实没有什么大用,你删除掉看不到什么变化

注释写的很明白了如果在Netscape浏览器4.0版本下浏览这个网页,而且被调整大小的话,它就自动重新加载一下,如果是IE的话,应该没有什么变化的