voip03 Posted August 3, 2011 Share Posted August 3, 2011 js code <html> <head> <script type="text/javascript"> <!-- function delayer(){ window.location = "../javascriptredirect.php" } //--> </script> </head> <body onLoad="setTimeout('delayer()', 5000)"> <h2>Prepare to be redirected!</h2> <p>This page is a time delay redirect, please update your bookmarks to our new location!</p> </body> </html> When a user visited to home page, I want to say’ hello ‘to user and redirect to the user home page I can do it in js but I like to see it can down in jquery. TIA Quote Link to comment https://forums.phpfreaks.com/topic/243683-jquery-and-timedelay/ Share on other sites More sharing options...
trq Posted August 3, 2011 Share Posted August 3, 2011 jQuery IS JavaScript. Quote Link to comment https://forums.phpfreaks.com/topic/243683-jquery-and-timedelay/#findComment-1251237 Share on other sites More sharing options...
voip03 Posted August 3, 2011 Author Share Posted August 3, 2011 I mean jquery coding Quote Link to comment https://forums.phpfreaks.com/topic/243683-jquery-and-timedelay/#findComment-1251280 Share on other sites More sharing options...
trq Posted August 3, 2011 Share Posted August 3, 2011 Well, there are no timers in jQuery. There are third party plugins, but why bother? Actually, a nice exercise might be to write your own jQuery timer plugin. Quote Link to comment https://forums.phpfreaks.com/topic/243683-jquery-and-timedelay/#findComment-1251520 Share on other sites More sharing options...
AyKay47 Posted August 3, 2011 Share Posted August 3, 2011 i don't see the difference in using jquery as opposed to js here..perhaps if you explain your reasoning Quote Link to comment https://forums.phpfreaks.com/topic/243683-jquery-and-timedelay/#findComment-1251522 Share on other sites More sharing options...
voip03 Posted August 4, 2011 Author Share Posted August 4, 2011 Just want to try with jq that all. Quote Link to comment https://forums.phpfreaks.com/topic/243683-jquery-and-timedelay/#findComment-1251889 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.