SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast
    Join Date
    Apr 2001
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Open New Window With A Certain Size

    Hi,

    Here is my code now;

    Code:
    <FORM ACTION="script.cgi" NAME="fmain" METHOD="POST" TARGET="_new">
    <input type=hidden name="user" value="$user">
    <a href=javascript:fmain.submit();>Click Here</a></form>
    The script opens a new window.
    However, I want it to open a window with a certain hieght and width, and no address bar.
    Does anyone know how to do that?

    Tx!!!

  2. #2
    Gone!
    Join Date
    Aug 2001
    Location
    Witty Location Parody
    Posts
    3,889
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try this link to a popup window generator. I havent used it myself but it looks like what you want!

    http://javascript.internet.com/gener...up-window.html



    Edit:


    Just tried it and it seem good to me! The normal common variables to play with and easy to use

  3. #3
    SitePoint Enthusiast
    Join Date
    Apr 2001
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the link!
    But my question is, how do I integrate that with my current JavaScript code above?

    Tx!

  4. #4
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    needhelp...

    That javascript generator (and others online) will create a function for you. Then you simply use that fucntion call instead of the submit() function call you currently have.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  5. #5
    SitePoint Enthusiast
    Join Date
    Apr 2001
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, I NEED the submit button.
    I need the form to be submitted, but I want it to open a new window with that size.
    Any help?

    Tx!!


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
  •