Results 1 to 2 of 2

Thread: sizing a popup windows

  1. #1
    Join Date
    Sep 2004
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default sizing a popup windows

    Hi everyone.

    Can someone tell me how to change the attribute of a popup so it only shows at a certain size and removes nav buttons and such.

    Cheers
    al

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Can't be done using HTML. I can sort of be done with javascript (if enabled in the user's browser) except that depending upon the browser and how it is configured, pop ups may not be allowed at all and, if allowed, may be severely limited as far as how much control the site designer (you, in this case) can impose upon them.

    That being said, here is a fairly reliable javascript method for opening up a controlled pop up:

    Code:
    <a href="some.htm" onclick="window.open(this.href,'','width=300, height=300');return false;" target="_blank">Link Text</a>
    The pop up this opens will have the least amount of 'nav buttons and such' allowed by the browser. If javascript is disabled, a normal 'new window' would open, at least in most browsers. If pop ups are severely restricted by the browser's configuration, there will probably only be a notice that a pop up was blocked, perhaps not even that.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •