Refresh a webpage if user opens a link on that page in a new window/tab
e.g. <script src="http://myadvertiser.com/code.js"></script>
the ads all open in a new window/tab when clicked. So, when the user clicks on an ad (in the iframe so outside of my "control"), can I make MY webpage refresh? i.e. when the user skips off to look at the advertiser's page, can my page refresh before they get back?
I tried reading in to scripts detecting a mouse being detected on the page, but that wouldn't include touch devices.
Anyone any ideas where to start looking on this one? Or would I just have to go for mousedetection and ignore trying to do this with touch devices?