Forum Moderators: open

Message Too Old, No Replies

Pop up

Parameter passing

         

Punter

10:46 am on Feb 3, 2009 (gmt 0)

10+ Year Member



I'm a newbie to Jvascript.
How do I pass parameters from popup window to parent window and display them on the Parent window?

any help is much appreciated....

RonPK

4:30 pm on Feb 3, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Say you have this function in the parent window:

function hi(t) { 
alert(t);
}

You can call it from the popup using window.opener:

window.opener.hi('hello');