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:-
Explanation:-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>
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!!
Last edited by TcM; 12-03-2006 at 04:57 AM.
Well Its simple and can be done by anyone and found anywhere but still.. its a tutorial![]()
3 secs.....lol. i dont understand that . explain pls.
Its just saying its going to wait 3 seconds:
Many sites do this (especially for billing) so they can tell their customers that they are being transfered to a secure site that is used by them and reasure the customers that its safe. (If a window changed to a site asking for your card number would u blindly put it in).
Theres my $5
Please, write clearly with proper structure. Double spacing makes the text feel un-jointed, Capitalizing Every Word Means People Stop Before Every Word Sub-Consciously Which Is A Pain In The Backside, and use code tags! (The right most styling box).
Thanks![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks