cg9com
10-25-2002, 05:16 AM
Im doing a small filter.
Internet Explorer and 800x600 screen resolution should be the only ones to get to the "home.html" the rest should be taken to "fail.html"
however when i view through opera, with 800x600 screen resolution, it takes me to "home.html" anyway, i know this is a simple problem, can anyone help me come up with a solution as to why it wont filter correctly? im not the best javascript programmer.
if (document.all&&screen.width==800)
window.location.replace("home.html")
else
window.location.replace("fail.html")
i also tried with a function
function check () {
if (document.all&&screen.width==800)
window.location.replace("home.html");
}else{
window.location.replace("fail.html");}
....onLoad="check();"
with no luck, it must be the code?
Internet Explorer and 800x600 screen resolution should be the only ones to get to the "home.html" the rest should be taken to "fail.html"
however when i view through opera, with 800x600 screen resolution, it takes me to "home.html" anyway, i know this is a simple problem, can anyone help me come up with a solution as to why it wont filter correctly? im not the best javascript programmer.
if (document.all&&screen.width==800)
window.location.replace("home.html")
else
window.location.replace("fail.html")
i also tried with a function
function check () {
if (document.all&&screen.width==800)
window.location.replace("home.html");
}else{
window.location.replace("fail.html");}
....onLoad="check();"
with no luck, it must be the code?