Welcome to the OzoneAsylum FaqWiki
Frequently Asked Questions
DHTML/JavaScript

How can I redirect a page with JavaScript? Differences 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? Differences" rel="nofollow" >How can I redirect a page with JavaScript? Differences\

-Code :
+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:


-<script language="javascript" type="text/javascript">
- <!--
- window.setTimeout('window.location="http://www.ozoneasylum.com/5257"; ',2000);
- // -->
- </script>
---------------------------------------------------------------------------------------------------------------
-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)
-(Edited by Tyberius Prime on 06-09-2004 16:42)
-(Edited by bladerunner3 on 09-05-2008 14:43)

« BackwardsOnwards »

Show Forum Drop Down Menu