I have a normal page and popup window. On the popup window, I am modifying the javascript so the callback will change the value on my page (the page behind the popup window). But I am struggling on navigating back to that field in javascript.
I have the following:
window.document.getElementById(‘mynewfield’).value = newValue;
But this is not finding the field and needs to be changed to:
window.ID-OF-MY-WINDOW-BEHIND.document.getElementById(‘mynewfield’).value = newValue;
How can I find out what the ID is? Is there a print_r funciton for javascript?
I think what you’re looking for is:
You can use this as follows: