The Slacker's Guide to HTML


[
advanced search]

Home
HTML
Basics
Text Tags and
Text Positioning
Images
Links
Forms
Tables
Frames
Adding Sound
Meta Tags
Horizontal Rules
Comment Tags
Tips & Tricks
HTML Tips
ASCII Codes
RGB Color Chart
Refreshing Pages
Viewing Source
CSS
Basics
Selectors
Properties
Values
Cursor Effects
Positioning Content
Measurement in CSS
Centering with CSS
Custom Form Buttons
CSS For Links
Javascript
Archive
Dynamic HTML
Archive
XHTML
Basics
Rules
Site Success Center
Site Promotion
Monetize Your Site

Refreshing / Redirecting Pages

Refreshing pages are pages that automatically reload or automatically redirect after a set amount of time. You can choose the amount of time before the action occurs and you can choose to either refresh the current page or to send the visitor to a different page. Below is some sample code:

<meta http-equiv="refresh" content="10"; URL="http://www.domain.com/your_page.html">
In this case after ten seconds (content="10") the visitor will automatically be sent to the URL in that script. This tag we are now using utilizes the meta tag. The meta tag does some really good stuff, but I really don't get too into all that stuff on this page. For more on the meta tag, check out this page.

If you wanted to simply reload the current page then you would just place the URL of the page containing this tag in the url attribute. So, instead of loading a new page after the set amount of time it will just reload the same page.

That's really the entire lesson on refreshing or redirecting pages.