i have a IE multiwindow problem

I have some code that opens 2 IE windows, it then sets a url for each of those windows, on opening.

What i would like to do is after a dialog ok button press, which i have and can do, the URl of the 2 windows should change, but the one on the left should open X url and be updatabe, i.e the front window and the other window should show the previous url fromt the left window.

I dont know how to do this, i have named the two windows but it doesnt seem to work when i reference the name of the window.