Web Analytics Made Easy -
StatCounter js window / post form - CodingForum

Announcement

Collapse
No announcement yet.

js window / post form

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • js window / post form

    Hi all,

    I'm looking to have a form which submits (via post method if possible) which opens a javascript window.

    IE: They put in their details, then click the submit button and it posts the information to an serverside page where i can pick up what was requested. (i dont want the main window to relocate or load anything)

    Is this at all possible?

    Thanks,

    MiddleLine

  • #2
    function openPopup(target){
    var w = window.open('',target,'width=600,height=600');
    w.focus();
    }
    ...
    <form action="..." method="post" target="mypopup" onsubmit="openPopup(this.target)">
    ...
    <input type="submit" value="Submit">
    </form>
    Glenn
    vBulletin Mods That Rock!

    Comment

    Working...
    X