www.insideDHTML.com
Inside Dynamic HTML | Fun and Games | The 10K Demo | XML Online | CSS Online | Resources
Write Once! | DHTML Toolkits | Inside Techniques | Inside Scriptlets

Inside Techniques/

   

isie4() Function

The isie4() function that detects if the user is running IE4 and navigates them to a specified URL.

 <body onload="isie4('http://www.myserver.com/ie4.html');">
  If you are seeing this, your browser isn't IE4.
 </body>

isie4() Function

function isie4(x) {
        isat = navigator.userAgent.indexOf("MSIE ") + 5;
        if(navigator.userAgent.substring(isat, (isat + 1)) == "4") {
                document.location = x;
        }