Metachecker.net
|
FontsMadeEasy.com
|
RankChecker.net
Learn Java Script Today
|
Over 5000 Free Fonts
|
Tutorials
|
Javascript Forum
|
Other Javascript Resources
|
Cheat Sheet
JavaScript Basics
Inserting Javascript
Complete Tutorial
Advance DHTML Tutorial
Script archive
Advanced Tutorials
Alert Scripts
Animation
Audio
Background Effects
Banner Ads
Browser Window
Buttons
Button Forms
Calculcators
Calendars
Clocks & Dates
Cookies
Cursor Effects
DHMTL Games
DHTML Miscellaneous
Equivalents
Forms
Games
IE4+ Scripts
IE5+ Scripts
Image Effects
Image Miscellaneous
Links & Buttons
Math Related
Messages Miscellaneous
Miscellaneous
Mouse Tricks
Navigation
Page Details
Password Protection
Pulldown Menus
Random Stuff
Scrolling
Status Bar
Text Animation
User Detail
User Info
Window Control
Refresh
Sometimes, it may be necessary to forward visitors autmatically (or in a certain number of seconds) to another page. If you move to a different server, you might put this script at the old server pointing visitors to the new server.
Insert into <HEAD>
<META HTTP-EQUIV="REFRESH" CONTENT="10;URL=http://tutorial.js.hs/"> <!-- Note: If you do not want the clock, stop copying here. --> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin startday = new Date(); clockStart = startday.getTime(); function initStopwatch() { var myTime = new Date(); var timeNow = myTime.getTime(); var timeDiff = timeNow - clockStart; this.diffSecs = timeDiff/1000; return(this.diffSecs); } function getSecs() { var mySecs = initStopwatch(); var mySecs1 = ""+mySecs; mySecs1= mySecs1.substring(0,mySecs1.indexOf(".")) + " secs."; document.form1.timespent.value = mySecs1 window.setTimeout('getSecs()',1000); } // End --> </SCRIPT>
Insert into <BODY>
<!-- STEP TWO: Add the onLoad event handler to the BODY tag --> <BODY onLoad="window.setTimeout('getSecs()',1)"> <!-- STEP THREE: Put the final coding into the BODY of your HTML document --> <CENTER> <FORM NAME="form1"> <input type="text" value="" name="timespent" size=10> </FORM> </CENTER>
Other Options