SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Zealot maffp's Avatar
    Join Date
    Jun 2005
    Location
    UK
    Posts
    158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Open Form Target in Fixed Size New Window

    Hi!

    I have a form...

    Code:
    <form action="mailing.php" method="post" target="_blank">
    ...
    </form>
    ... which when submitted I would like to open a new fixed size window (e.g. 300x400). Obviously, it's well documented for how to do this for standard links but how do you do it in forms? Is the form tag edited or the input/submit?

    Thanks!

  2. #2
    SitePoint Wizard gRoberts's Avatar
    Join Date
    Oct 2004
    Location
    Birtley, UK
    Posts
    2,439
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    in mailing.php you can set the window size onload.

    Code:
    window.onload = function() {
        self.resizeTo(400,300);
    }



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
  •