Home - EntreNet Communications Web Design, Web Development, Custom Web Database ApplicationsGraphic Design ServicesWeb Development Services Domain Hosting, Dedicated Server Rentals, Co-Location ServicesOur Portfolio Resources - Portal, Technical Support, Education, Web MailContact Us


Redirect a web page
...to another page or site


The meta tag: http-equiv="refresh" has been condemned by some search engine "crawler" programs as a "spam" indicator. Using this tag on your web pages will disallow your listings on some search engines. Though the tag is still useful for intranet and slide show purposes, it is advised that the refresh function be indicated with a JavaScript on World Wide Web pages rather than using the .html tag.

The HTML tag that will reload the current Web page after 5 seconds

To reload the same page:

<META HTTP-EQUIV="REFRESH" CONTENT="5">

To reload a new page:

<META HTTP-EQUIV="REFRESH" CONTENT="5; URL=www.anyweb.com/page2.html">

 

 

 



JavaScript equivalent to this tag is:

Insert the following in the <head> section:

<SCRIPT LANGUAGE="JavaScript">

setTimeout("location.replace('http://www.yahoo.com')",4000);

</SCRIPT>

Replace www.yahoo.com with the url that you wish the page to refresh to.

Note: 4000 is the refresh time expressed in milliseconds ....this page will refresh

in 4 seconds. This is an adjustable value.


 © All rights reserved.   EntreNet Communications Inc.™ 2001     ACCEPTABLE USE POLICY    TERMS AND CONDITIONS    PRIVACY POLICY