Get element in newly opened window with GreaseMonkey. window.open and href not available

Viewed 9

I have a GreaseMonkey script that clicks a button, which opens a new window. I then want to get an element from that new window. However, I am not able to get a reference for that new window. The focused window remains on the old window instead of transferring to the new window.

The issue is that the button runs its own javascript function to open the new window. So I can't reference the new window with window.open. The button also does not have a href for me to get its link.

Is there a way for me to reference child windows (like the opposite of window.opener)?

0 Answers
Related