Snap Builder Public Codes Library
Snap | Generators | Login | Browse | Search | Enter Code | Export Snap Builder Public Codes Library


Category: Javascript Codes Library >> Redirects >> Timed Redirect Visitor Forwarder

Code Snippet </> Info

Snippet Name: Timed Redirect Visitor Forwarder

Description: Easily redirect visitors with a message and timed countdown.

Compatible Browsers:
Chrome BrowserFirefox BrowserInternet Explorer BrowserOpera BrowserSafari Browser

Example: View Code Demo

Note: Simply write your message and replace the var targetURL= with your redirect forwarder URL.

Author: SnapBuilder <>

Last Modified: 2019-12-10 01:05:46

Language: javascript

Highlight Mode: javascript

Copy Codes: Use Free Notepad ++
Bookmark and Share

Snap HTML Code Editor:
Paste the source code, make changes and instantly see it in live preview.
Snap HTML Code Editor

  About Copying
Copied To Clipboard!

<html> <head> <title>Timed Redirect Visitor Forwarder Javascript Code Snippet</title> </head> <body> <form name="redirect"> <center> <font face="Arial"><b>{Your Redirect Message Here} transferring you in <br> <form><input type="text" size="3" name="redirect2"></form>seconds</b></font></center> <script> // Begin Timed Redirect Visitor Forwarder from Free Public Codes Library // Free to use as long as the credit lines remain in place <!-- var targetURL="" var countdownfrom=5 var currentsecond=document.redirect.redirect2.value=countdownfrom+1 function countredirect(){ if (currentsecond!=1){ currentsecond-=1 document.redirect.redirect2.value=currentsecond } else{ window.location=targetURL return } setTimeout("countredirect()",1000) } countredirect() //--> </script> </body> </html>

[ Snippet Options ]


© 2002 -  Snap Builder Public Codes Library