Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    May 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question window.opener as target for a form

    Hy everyone!

    I am a newbie to Javascript and I have a little problem.

    With a link, I open a popup window containing a form.
    I want that this form has as target the window.opener in order to not open a new page every time i submit the form.

    I search in the forum and i don't find anything.

    Anyone can help me?

    Thanks

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    10,950
    Thanks
    0
    Thanked 236 Times in 233 Posts
    in main page:
    <script type="text/javascript">
    window.name="mywindow";
    </script>

    in popup:
    <form target="mywindow" ...>
    or
    <form onsubmit="this.target=opener.name" ...>

  • #3
    New to the CF scene
    Join Date
    May 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I love you

    Thanks


  •  

    Posting Permissions

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