A question like this has been asked in SO before, and it seems impossible to capture URLs open on other tabs.
If you are writing blogs, you could see a preview button that, when clicked, opens a blog post in preview mode on a new tab, and each time you click this button, the preview page that was opened earlier is updated.
My question may not be constructive, but I was wondering how they grab the tab and refresh the page.
What things do they use? If someone gains knowledge, if you share it, it will be very helpful.
Update:
Firebugging shows that Preview is a button:

source share