Forum Moderators: open

Message Too Old, No Replies

Calling function

how can I call function from po-up window to root html page

         

hellboy

11:38 am on Mar 26, 2007 (gmt 0)

10+ Year Member



HI!

I've got a function which is in the pop-up window called:
<a href="javascript:SetColor(this.bgColor);">PICK</a>

the function SetColor() is in the main (root) page, how can I call the function from the pop-up window? Note: for some reasons it is not possible to have the function in po-up window, thx for help:)

RonPK

12:46 pm on Mar 26, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try using window.opener:
<a href="javascript:window.opener.SetColor(this.bgColor);">PICK</a>

hellboy

1:02 pm on Mar 26, 2007 (gmt 0)

10+ Year Member



Great! THX a lot :)