1

I'm running this javascript to click a link through my Chrome browser

document.getElementById('extractResults').click();

It's clicking fine, until I navigate away from the browser tab or window. Any insights into how to execute the action even after I've navigated away from the tab?

Thanks!

Jeff O'Bryant
  • 21
  • 1
  • 4
  • Can you give a bit more details about what you are trying to do? If you are fine this happening 'automatically in the background', I would suggest you look at `setTimeout` and `setInterval`. – Christiaan Rakowski Feb 25 '16 at 21:56

1 Answers1

0

I guess it depends on how you're "running this javascript"... are you using setInterval() or something similar?

You might do a google search for "javascript background tabs" -- there are a lot of related issues (such as this and this) and the bottom line seems to be that modern browsers are saving CPU (etc) by not running everything when in the background.

Community
  • 1
  • 1
arthurakay
  • 5,631
  • 8
  • 37
  • 62