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 <snippets@snapbuilder.com>

Last Modified: 2015-12-13 07:05:32

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

<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 http://snapbuilder.com Free Public Codes Library // Free to use as long as the credit lines remain in place <!-- var targetURL="http://snapbuilder.com/code_snippets/view_code_example/redirect/timed_redirect_land_visitor.html" 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