object not supporting action error

<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">

window.confirm("Please Wait!");

if (screen.width==800||screen.height==600)//if 800x600

window.location("http://www.friendship.co.nr/index.php")

elseif (screen.width==640||screen.height==480)//if 640x480

window.location("http://www.friendship.co.nr/error.php")

elseif (screen.width==1024||screen.height==768)//if 1024x768

window.location("http://www.friendship.co.nr/index2.php")

else//if all else

window.location("http://www.friendship.co.nr/error.php")

</script>

This is my code..

I am getting the error "Error: Object doesn't support this action". what should i do.

[1217 byte] By [pratik29a] at [2007-11-15]
# 1
in which line?
mshanua at 2007-7-12 > top of java,Enterprise & Remote Computing,Web Tier APIs...
# 2
in my code it says line 62. how do i check in this code which line.
pratik29a at 2007-7-12 > top of java,Enterprise & Remote Computing,Web Tier APIs...
# 3
This will be a part of html rite? it says the line no of the entire html content/
mshanua at 2007-7-12 > top of java,Enterprise & Remote Computing,Web Tier APIs...
# 4
yes
pratik29a at 2007-7-12 > top of java,Enterprise & Remote Computing,Web Tier APIs...
# 5
copy and paste ur entire html in a good editor and see what is ther ein line no 62..
mshanua at 2007-7-12 > top of java,Enterprise & Remote Computing,Web Tier APIs...
# 6
which good editor should i use.. pls help..
pratik29a at 2007-7-12 > top of java,Enterprise & Remote Computing,Web Tier APIs...
# 7
edit plus or macromedia...regardsshanu
mshanua at 2007-7-12 > top of java,Enterprise & Remote Computing,Web Tier APIs...
# 8
umm ill hav to download it.. u can goto www.friendship.co.nrthe page is there. after u click on ok for please wait the error comes.
pratik29a at 2007-7-12 > top of java,Enterprise & Remote Computing,Web Tier APIs...
# 9
hey in edit plus it shows line 62 as the line window.location(" http://www.friendship.co.nr/index.php")
pratik29a at 2007-7-12 > top of java,Enterprise & Remote Computing,Web Tier APIs...
# 10
try this..window.location=" http://www.friendship.co.nr/index.php";
mshanua at 2007-7-12 > top of java,Enterprise & Remote Computing,Web Tier APIs...
# 11

Apart from this: checking resolutions and redirecting accordingly is heavily discouraged. Just design for at least 800x600 or even 1024x768 and forget about it. It will save you *much* effort and time. By the way, ignoring bigger resolutions isn't a good idea .. I use 2560x1024 at home and 1600x1080 at work, why should I arrive at the error page?

BalusCa at 2007-7-12 > top of java,Enterprise & Remote Computing,Web Tier APIs...