Welcome to the OzoneAsylum FaqWiki
Frequently Asked Questions
DHTML/JavaScript

How can I redirect a page with JavaScript? Pages that link to <a href="https://ozoneasylum.com/backlink?for=5258" title="Pages that link to How can I redirect a page with JavaScript?" rel="nofollow" >How can I redirect a page with JavaScript?\

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;



to do this with a delay:

code:
setTimeout("this.location = 'URL' ",1000);



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');



-----------------------------
Relevant threads:

page refresh script

-----------------------------
Relevant links:

Grizzly WebMaster - Page Redirection

Sensible redirecting

--------------------------------------
Relevant FAQs:

How can I redirect a page with PHP?

How can I redirect a page with HTML?

How can I redirect a page using Apache?

How can I redirect a page using ASP?

(Edited by Tyberius Prime on 09-05-2008 15:04)

« BackwardsOnwards »

Show Forum Drop Down Menu