OZONE Asylum
FAQ
How can I redirect a page with JavaScript?
This page's ID:
5258
Search
QuickChanges
Forums
FAQ
Archives
Register
You are editing "How can I redirect a page with JavaScript?"
Who can edit an FAQ?
Anyone registered may edit an FAQ.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
It comes in useful when combined with other scripts or for if you wanted to redirect only people with JavaScript enabled browsers to a special JavaScript rich page: [code]document.location = URL;[/code] to do this with a delay: [code]setTimeout("this.location = 'URL' ",1000);[/code] and to replace the page (the page being replaced won't appear in the history and so the back button skips it): [code]location.replace('URL');[/code] ----------------------------- Relevant threads: [url=http://www.ozoneasylum.com/Forum2/HTML/001832.html]page refresh script[/url] ----------------------------- Relevant links: [url=http://grizzlyweb.com/webmaster/javascripts/redirection.asp]Grizzly WebMaster - Page Redirection[/url] [url=http://www.metalusions.com/backstage/articles/1/]Sensible redirecting[/url] -------------------------------------- Relevant FAQs: [5038] [5257] [5290] [22098] [small](Edited by [url=http://www.ozoneasylum.com/user/1424]Tyberius Prime[/url] on 09-05-2008 15:04)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »