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 4 of 4
  1. #1
    Regular Coder
    Join Date
    Apr 2005
    Posts
    388
    Thanks
    0
    Thanked 0 Times in 0 Posts

    controlling the size of a new window

    howdy,
    How do you control the size of a new window that pops up from a link like this;
    Code:
    <a href="http://www.awebsiteanwhere.com" target="_blank">Your Website here</a>
    thanks.

  • #2
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You need to use Javascript I'm afraid.

    Code:
    <a href="#" onClick="window.open('http://www.awebsiteanwhere.com', 'popWin', 'width=300, height=200'); return false">Your Website here</a>

  • #3
    Regular Coder
    Join Date
    Apr 2005
    Posts
    388
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks

  • #4
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    No prob, gotta be one of the quickest question and answer threads lol.


  •  

    Posting Permissions

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