SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict jamesbond's Avatar
    Join Date
    Feb 2001
    Location
    The Netherlands
    Posts
    256
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    form submission -> 2 windows

    Hi, I have a form which opens a new window after submission (target=_blank)
    I would like the current (form) window to also change though.

    The current window just needs to change to a confirmation page.
    The new window (target=_blank) needs the variables from the form.

    I suppose I have to use onsubmit for this, but haven't been able to figure it out exactly.

    Any ideas?

  2. #2
    SitePoint Addict jamesbond's Avatar
    Join Date
    Feb 2001
    Location
    The Netherlands
    Posts
    256
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If the form results are targetted to a new with target="_blank" can I then put something like :

    <body onload="parent.location='confirmation.html''' > in the new window to refresh the old page with a confirmation page?

    I tried that but it doesn't seem to do anything, so I need to come up with something else...

  3. #3
    SitePoint Zealot
    Join Date
    Aug 2002
    Posts
    180
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    onsubmit="parent.location...

    in the form tag.


Bookmarks

Posting Permissions

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