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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2004
    Location
    Bournemouth
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question HTML Window Size

    Hi can someone help me with the following please.

    I want to display a new window followed from a link to display on screen at the size of 300 wide 200 high and have no menu bar or status bar in effect a pop up window, can someone show me the coding required for this to work.

  • #2
    Senior Coder
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    1,963
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Code:
    <a href="pop.cfm" title="Open in New window" onclick="window.open
    (this.href, 'popupwindow', 'width=300,height=200,top=50,
    left=200,scrollbars=0,resizable=0,
    menubar=0,taskbar=0'); return false;">
    *all code should be on one line

    This should be it, although i typed it quickly from memory and I haven't tested it.
    Put in the position (top, left) you want, or take it out.

    I don't think you need px for measurements, but I'll soon be shouted down if I'm wrong.
    Oh, and by the way, you should have posted this in the JavaScript Questions section of the forums
    Last edited by mindlessLemming; 01-06-2004 at 01:37 PM.

    I take no responsibility for the above nonsense.


    Left Justified


  •  

    Posting Permissions

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