HTML Help

newmont91

Junior Member
Joined
Sep 1, 2009
Messages
82
Reaction score
0
I am trying to do a auto refresh of a webpage using a local HTML file, using

meta http-equiv="refresh" content="10,examplewebsite"

However, after the first refresh, it goes to the website instead and stops refreshing. How do I achieve it then?
 

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,550
Reaction score
1,302
I am trying to do a auto refresh of a webpage using a local HTML file, using

meta http-equiv="refresh" content="10,examplewebsite"

However, after the first refresh, it goes to the website instead and stops refreshing. How do I achieve it then?

What you might want is using an iframe to contain your example website in your local html web page and using javascript to create the iframe every few seconds since your example webpage is likely going to be in a different domain :)
 

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,550
Reaction score
1,302
Maybe you might want to explain why do you need to keep reloading a particular webpage? In any case, the method I propose wouldn’t work for some websites because there are numerous websites today that will response with X-Frame-Orgin header that will deny browsers from opening the site in a frame depending on accessing origin or just plain deny.

There could be a better way of handling your case if you explain what you are trying to achieve.

The reason why your method doesn’t work for more than once is simply your browser is opening a new location, hence the website markup will totally replace the browser or tab. There are cross domain restrictions at play for modern browsers and it wouldn’t be a simple solution in a lot of cases.

Hmmm notice it is another poster replying. In any case, the same reply from me to whomever wanted a solution to TS problem. :)
 
Important Forum Advisory Note
This forum is moderated by volunteer moderators who will react only to members' feedback on posts. Moderators are not employees or representatives of HWZ Forums. Forum members and moderators are responsible for their own posts. Please refer to our Community Guidelines and Standards and Terms and Conditions for more information.
Top