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!!


LinkBack URL
About LinkBacks





Reply With Quote








Bookmarks
Algorithms and Data Structures
Java tutorials
Algorithms Forum