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