<script language=javascript>
top.document.location.replace("/index.jsp");
</script>
document.location.replace("/index.jsp")这段我知道是打开一个新的网页,前面加个top什么意思?
top.document.location.replace("/index.jsp");
</script>
document.location.replace("/index.jsp")这段我知道是打开一个新的网页,前面加个top什么意思?
top.document.location.replace("/index.jsp");
这一句就保证了浏览器整个界面直接打开index.jsp
而避免从子窗口中打开