A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: controlling parent windows from a child window

  1. #1
    Senior Member
    Join Date
    Jun 2001
    Location
    Bay Area, CA
    Posts
    170

    controlling parent windows from a child window

    how can I control a parent window from a child window.

    The child window has a form w/ a form action = "page.php?afeafe". When submit is pressed, I want page.php?afeafe to appear in the parent window instead of the child window. Thanks for your help.

  2. #2
    Multimedia Developer
    Join Date
    Jun 2001
    Location
    Ireland
    Posts
    41
    in the child window use code such as :

    window.opener.location.href = "page.php?afeafe";
    Just cos you're paranoid, does'nt mean that they aint out to get you

  3. #3
    Senior Member
    Join Date
    Jun 2001
    Location
    Bay Area, CA
    Posts
    170
    Originally posted by circuitbored
    in the child window use code such as :

    window.opener.location.href = "page.php?afeafe";
    thanks for the help. I needed to have the link in the Form tag.

    I did figure it out for anyone who wants to know. In the form tag in the child window, I did a target=main, and in the parent window in the js function tag, I put a "self.name = "main";". Thanks for the help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center