HTML/Useful techniques

From virtualMV2015wiki
Jump to: navigation, search


This page contains miscellaneous techniques that you may find useful

Icon Objective.png

Objective Conditional comments

By the end of this page you will be able to:

  • Redirect a Web page

Redirect a user to a new URL

To redirect a user to a new URL use the refresh meta tag.

The example (below) will display a line of text for three seconds before automatically jumping to a new URL.

Note that the quotes around the CONTENTS value must surround both the time delay and the target URL. The delay can be zero, but remember that the page will still be visible until the new page is downloaded.

(From Microsoft Site Builder Network)

<head><title>Old page</title> 
<meta HTTP-EQUIV="REFRESH" CONTENT="3; URL=newpage.htm">
<body bgcolor=#FFFFFF text=#000040> 
<p>We’ve moved! I’ll take you to our new page now...</p> 

Icon References.png References

HTML/Useful techniques. (2017). In virtualMV's ( Michael Verhaart ) wiki. Retrieved December 12, 2017, from    (zotero)