View Single Post
  #1 (permalink)  
Old 12-02-2006, 01:36 PM
TcM's Avatar   
TcM TcM is offline
Code Warrior
 
Join Date: Aug 2006
Location: In a technologic world :p
Posts: 8,332
Rep Power: 68
TcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of light
Default JavaScript:Tutorial, Redirect URL

Introduction:-
Welcome to another JavaScript tutorial of mine..This will code will Redirect the user to a specified website

Solution:-
This code goes in the <head> tags:-

Code:
<SCRIPT language="JavaScript"> 
 function redirUrl()
  {
    top.location="http://forum.codecall.net";
   }
 
   if (top.frames.length==0)
    {
     alert("You will be redirected to forum.codecall.net in 3 seconds!");
     setTimeout('redirUrl()',3000);
     }
</SCRIPT>
Explanation:-
I think it's self explanatory no need of explanations! Its too simple

A Preview:-


Conclusion:-
As Always Feedback is welcome and the full source is attached!!
Attached Files To view attachments in this forum your post count must be 1 or greater. You currently have 0 posts.

Last edited by TcM; 12-03-2006 at 07:57 AM.
Reply With Quote

Sponsored Links