How to refresh one link on a page?
There's a button on a website that refreshed just one frame on that page. (Refreshing the whole page doesn't work.) Right clicking, Inspect Element brings up possibilities but I have no idea what to do here. Anybody know? Just want to replicate a click on that link every few seconds.
所有回覆 (7)
If it's a frame, try this: right-click a blank part of the framed page, then click This Frame to open the fly-out menu, then click Reload Frame.
When I click it there is no "This Frame" in the drop down menu. I need for the frame to automatically load every few seconds. Its easy to get tab reloaders/refreshers but they are loading the entire page which doesn't work on this page unfortunately.
So it's not an actual framed page.
If you can't find an add-on that clicks an identifiable element on a schedule, you could try to find a userscript or write one yourself.
(Userscripts require an extension such as Greasemonkey, Tampermonkey, or Violentmonkey.)
You will need to find a selector for the button such as an id or combination of other criteria to unique identify it. Then you will need to inject your clicker function using window.setInterval().
- https://developer.mozilla.org/docs/Web/CSS/CSS_Selectors
- https://developer.mozilla.org/docs/Web/API/WindowOrWorkerGlobalScope/setInterval
For example, the Preview button below the post on this page has id="preview"
so the code to click that every 30 seconds would be:
var clicker = window.setInterval(function(){document.getElementById('preview').click();}, 30 * 1000);
(That's 30 x 1000 milliseconds)
To stop it:
window.clearInterval(clicker);
Can't you open this frame in its own tab ?
When I right click the refresh button and click "Inspect Element" interesting options appear. Can I do something there? Sure would be nice to see a REFRESH option with a time interval! One can only dream....:) What I'm clicking to refresh that frame or part of the page is just a button actually. I wonder if "frame" is the right word though. Its a box that displays updated information while everything else on the page remains the same.
由 moz2u 於
moz2u said
When I right click the refresh button and click "Inspect Element" interesting options appear. Can I do something there?
Interesting options appear on the page, on the context menu, in the Page Inspector tool, or... what?? Did you intend to share a screenshot or ??