I need to open a new window and return an element contained in it.
Say we have page A and page B, I want:
I tried to do so in this manner, but it doesn't work:
var newwindow = window.open("http://www.example.com"); var elem = newwindow.document.getElementById('my-id').value; Where am I wrong? Has anyone some advice to me?