Javascript and the window.document object. How to change value in document -


i have normal page , popup window. on popup window, modifying javascript callback change value on page (the page behind popup window). struggling on navigating field in javascript.

i have following:

window.document.getelementbyid('mynewfield').value = newvalue;

but not finding field , needs changed to:

window.id-of-my-window-behind.document.getelementbyid('mynewfield').value = newvalue;

how can find out id is? there print_r funciton javascript?

i think you're looking is:

window.opener 

you can use follows:

window.opener.document.getelementbyid('mynewfield').value = newvalue; 

Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -