Today, I want to make a page refresh every 30 seconds. I think the first idea comes to most of you is using JavaScript. Write a timer, refresh the page, everything is done. You also can do it from server side. But we may have another simple choice-Meta tag.
<meta content="30" http-equiv="refresh" />
Add this line in the <head></head>, it will refresh the page every 30 seconds.
<meta content="30" http-equiv="refresh" url="www.google.com" />
It would redirect to Google after 30 seconds.It's easier than the other two methods. You can do a lot by the meta tag. If you want the whole list, you can refer here.
No comments:
Post a Comment