Click here to Skip to main content
15,891,567 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,, i have a problem to auto reload my page
PHP
$page = $_SERVER['PHP_SELF'];
$sec = "5";
header("Refresh: $sec; url=$page");

i used this code to reload, but it doesn't work when i closed the page..
i want the page keep reload automatically even i leave it,
please help,, thanks for any comment..
Posted
Comments
Ganesan Senthilvel 8-Jul-12 23:49pm    
What is the code in Closed event?
OSAMARU 8-Jul-12 23:57pm    
i don't use code to close it, i just close the browser.
Sandeep Mewara 9-Jul-12 1:23am    
What do you mean by reload after closing the page? Not clear on what are you trying to do.
Mohibur Rashid 9-Jul-12 2:04am    
read about document.location.

if it does not help then ask the question again
[no name] 9-Jul-12 3:45am    
Why do you want to refresh your page? There can be even better options, just let us know your requirement.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900