refresh a html frame by javascript console

Costas

Administrator
Staff member
to refresh a html frame per 3 minutes, execute this on console window :

JavaScript:
setInterval(function() {
// src - https://stackoverflow.com/questions/86428/what-s-the-best-way-to-reload-refresh-an-iframe
       document.getElementById('frame_id').contentWindow.location.reload();
}, 3 * ( 60 * 1000) );

or as bookmarklet
JavaScript:
javascript:(function(){ setInterval(function() { console.log('*****************refresh -- ', new Date()); document.getElementById('frame_id').contentWindow.location.reload(); }, 3 * ( 60 * 1000) ); })();


ref - bookmarklet constructor - http://js.do/blog/bookmarklets/
 
Top