Javascript question... (Full Version)

All Forums >> [Web Development] >> General Web Development



Message


tdope21 -> Javascript question... (5/27/2008 17:25:38)


I'm using the 'window.onbeforeunload' for the first time and I've run into an issue. When the user clicks 'ok' they are taken to the previous page. That's great..

But I'm sure there's a way to redirect the user to another URL I just haven't found a way of doing it.

Thoughts? Help? Strong Drink?





ou812 -> RE: Javascript question... (6/20/2008 20:13:06)

I'm not sure quite what you're asking. Maybe you are looking for window.location?

http://www.w3schools.com/HTMLDOM/dom_obj_location.asp
example here:
http://www.w3schools.com/js/tryit.asp?filename=tryjs_location




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875