Page 1 of 1

Using JavaScript to send page to diff location

Posted: Thu Mar 27, 2003 6:38 pm
by nigma
Hey,

I use frames on my website. Since the frame width / lengths are hardcoded into the html page than the page doesn't look that good to ppl with lower / higher resolutions than I have (since I made the site so it looked good on my current resolution). To fix this I thought I would use JavaScript to get the users resolution and then tell javascript to send the user to a page designed specificaly for there current res.

So how do I tell javascript to change the page?

Thanks for all help and advice provided.

Posted: Fri Mar 28, 2003 1:32 am
by volka
take a look at http://tech.irt.org/articles/js205/index.htm
keep in mind that pop-ups might be suppressed by browsers.

Posted: Sat Mar 29, 2003 5:20 am
by DocSeuss
my understanding of the question is that you don't want to "pop up" a new page just redirect based on viewers resolution.

once you determine the resolution use

window.location = " url ";

and the main page will navigate to (url).