Sep 19, 2003 #1 beau2 Programmer Sep 19, 2003 2 US can someone give me a code example of how to use the switch statement to redirect a user from one site to another? thanks for the help
can someone give me a code example of how to use the switch statement to redirect a user from one site to another? thanks for the help
Sep 19, 2003 #2 SeAL Programmer Mar 15, 2001 139 FR Hi beau2, <script language="JavaScript"> var iValue = 0; switch (iValue) { case 0 : window.location.href = "http://www.tek-tips.com"; break; case 1 : window.location.href = "http://www.your-site.com"; break; } </script> Hope this Helps ... Upvote 0 Downvote
Hi beau2, <script language="JavaScript"> var iValue = 0; switch (iValue) { case 0 : window.location.href = "http://www.tek-tips.com"; break; case 1 : window.location.href = "http://www.your-site.com"; break; } </script> Hope this Helps ...
Sep 19, 2003 Thread starter #3 beau2 Programmer Sep 19, 2003 2 US WOW. thank you so much! you are the coolest!!! Upvote 0 Downvote