X
Tryk her for at gå til webstedets mobilversion.

Supportforum

How to refresh one link on a page?

Skrevet

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.
Citér

Yderligere systemdetaljer

Installerede plugins

  • Shockwave Flash 32.0 r0

Program

  • User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0

Yderligere information

Luk
jscher2000
  • Top 10 Contributor
8837 løsninger 72222 svar

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.

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.
Fandt du dette nyttigt?
Citér

Spørgsmålsstiller

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.

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.
Fandt du dette nyttigt?
Citér
jscher2000
  • Top 10 Contributor
8837 løsninger 72222 svar

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

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 <code>id="preview"</code> 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);
Fandt du dette nyttigt?
Citér
cor-el
  • Top 10 Contributor
  • Moderator
17683 løsninger 159978 svar

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

Can't you open this frame in its own tab ?
Fandt du dette nyttigt?
Citér

Spørgsmålsstiller

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.

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.

Ændret af moz2u den

Fandt du dette nyttigt?
Citér
jscher2000
  • Top 10 Contributor
8837 løsninger 72222 svar

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

''moz2u [[#answer-1277251|said]]'' <blockquote> When I right click the refresh button and click "Inspect Element" interesting options appear. Can I do something there? </blockquote> 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 ??
Fandt du dette nyttigt?
Citér
cor-el
  • Top 10 Contributor
  • Moderator
17683 løsninger 159978 svar
See also: *https://developer.mozilla.org/en-US/Tools/Page_Inspector/How_to *https://developer.mozilla.org/en-US/Tools/Page_Inspector/How_to/Examine_and_edit_HTML
Fandt du dette nyttigt?
Citér
Stil et spørgsmål

Du skal logge ind på din konto for at svare på et indlæg. Start et nyt spørgsmål, hvis du ikke har en konto endnu.