Hi, I have Javascript that is meant to open a new window which contains a form, and then manipulate a couple of form elements. However, the page in the new window takes a while to load. Is it possible to tell my function in the originating page to wait for the page in the new window to load before running the rest of the script? (I assume this is the problem, but I've posted the Javascript function in case I've done something wrong in there).
Tom
Code:
function OpenForm(url)
{
newwindow = window.open(url);
newdocument = newwindow.document;
newdocument.forms(0).myformitem.value = 'test';
}
Tom
