By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,589 Members | 1,017 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,589 IT Pros & Developers. It's quick & easy.

Setting values on parent form

P: n/a
Hi all!

I know how to reload the mainform, but accessing a form and setting a
value there?

onLoad="if (window.opener && !window.opener.closed)
{ window.opener.forms[0].elements[0].value='xxx';window.close(); }"><?

BR
Sonnich

Feb 14 '07 #1
Share this Question
Share on Google+
1 Reply

P: n/a
On Feb 14, 9:47 pm, "jodleren" <sonn...@hot.eewrote:
Hi all!

I know how to reload the mainform, but accessing a form and setting a
value there?
Played a bit around and came up with this:

function PostSelection(input)
{
if (window.opener && !window.opener.closed)
{
window.opener.document.forms[0].picture.value=input;
window.close();
}
else
alert("Parent window has been closed!");
}
BR
Sonnich
Feb 14 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.