Setting values on parent form

J

jodleren

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
 
J

jodleren

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,754
Messages
2,569,525
Members
44,997
Latest member
mileyka

Latest Threads

Top