voip03 Posted August 2, 2011 Share Posted August 2, 2011 I am using body tag twice one on header.php and 2nd one in that code to ‘onload ‘ js Is there any alternative to onload the js <html> <head> <script type="text/javascript"> <!-- function delayer(){ window.location = "../javascriptredirect.php" } //--> </script> </head> <? reqiuure(header.php); ?> <h2> hello</h2> <body onLoad="setTimeout('delayer()', 5000)"> <h3> Hello world</h3> </body> </body> </html> Quote Link to comment Share on other sites More sharing options...
Maq Posted August 2, 2011 Share Posted August 2, 2011 I would personally just use JQuery's ready() method: http://api.jquery.com/ready/ Quote Link to comment Share on other sites More sharing options...
voip03 Posted August 2, 2011 Author Share Posted August 2, 2011 thank you Quote Link to comment 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.