Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to execute javascript function on popup from opener

 
Homer Hill
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I'm a javascript newbie so be gentle.

I basically need to open a popup window and then execute a javascript function on the popup. The popup can not have a call to the javascript function -- the function must be executed ON the popup FROM the opener.

Here is an example of what I want to do.

On the opener window, if a user clicks a button, a window pops up. This popup could be a registration form for a forum. Once the popup has fully loaded, I need to execute a javascript function that will fill in some fields of the form (such as the e-mail address of the user if it is already known).

This is fairly simple if I put the function call in the BODY tag of the popup, but I'd like to avoid doing this.

Thanks for any help! Please let me know if any clarification is required.
Homer
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://radio.javaranch.com/pascarello/2005/01/18/1106063002000.html

BUT you are not going to be able to do this across domains.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic