搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

How to refresh one link on a page?

  • 7 回覆
  • 1 有這個問題
  • 8 次檢視
  • 最近回覆由 cor-el

more options

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.

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)

more options

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.

more options

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.

more options

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().

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);

more options

Can't you open this frame in its own tab ?

more options

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 於 修改

more options

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 ??

more options