Using JavaScript to send page to diff location

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
nigma
DevNet Resident
Posts: 1094
Joined: Sat Jan 25, 2003 1:49 am

Using JavaScript to send page to diff location

Post 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.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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.
DocSeuss
Forum Newbie
Posts: 10
Joined: Sat Mar 29, 2003 3:28 am

Post 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).
Post Reply