Location property
<SCRIPT LANGUAGE="JavaScript"> var isNav4 = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) == 4) if (top.location.href == window.location.href) { if (isNav4) { if (window.innerWidth != 0) { top.location.href = "http://www.java2s.com" } } else { top.location.href = "http://www.java2s.com" } } </SCRIPT>