the below function allows me to pass the screen resoltion variable to asp through a cookie. It works in IE and Opera but not in Netscape. What is the problem?
if someone doesn't know what the asp line does, then 800x600 may be an output. Like belowCode:<script language="JavaScript"> <!-- function checkres(){ if('<%=Request.Cookies("screenres")%>' != window.screen.width + 'x' + window.screen.height){ document.cookie = 'screenres=' + window.screen.width + 'x' + window.screen.height window.location.href("default.asp") } } // --> </script>
the if statement doesn't appear to be executed in NS...so I presume that the error is in the lineCode:<script language="JavaScript"> <!-- function checkres(){ if('800x600' != window.screen.width + 'x' + window.screen.height){ document.cookie = 'screenres=' + window.screen.width + 'x' + window.screen.height window.location.href("default.asp") } } // --> </script>
thanksCode:if('<%=Request.Cookies("screenres")%>' != window.screen.width + 'x' + window.screen.height){![]()




Bookmarks