Mega Code Archive

 
Categories / JavaScript DHTML / Window Browser
 

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.rntsoft.com"         }     } else {         top.location.href = "http://www.rntsoft.com"     } } </SCRIPT>