Results 1 to 3 of 3

Thread: New Window without scrollbars and size 50X50

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

    Default New Window without scrollbars and size 50X50

    I would a new window IE without scrollbars and size 50X50

    from here i find

    <SCRIPT TYPE="text/javascript">
    <!--
    function popup(mylink, windowname)
    {
    if (! window.focus)return true;
    var href;
    if (typeof(mylink) == 'string')
    href=mylink;
    else
    href=mylink.href;
    window.open(href, windowname, 'width=50,height=50,scrollbars=no);
    return false;
    }
    //-->
    </SCRIPT>

    and you call by
    <A HREF="activation.htm" onClick="return popup(this, 'notes')">
    Activation</font></A>

    But it show me scrollbars in a window of 50x50.
    How i get rid of them?

  2. #2
    Join Date
    Sep 2005
    Location
    Connecticut
    Posts
    66
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    its not "scrollbars=no" its "scrollbars=0". hope that helps!

  3. #3
    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

    Quote Originally Posted by Wizard13335
    its not "scrollbars=no" its "scrollbars=0". hope that helps!
    Actually, either is OK. In fact, simply not listing scrollbars at all, is supposed to make it so that there are none. However:
    Quote Originally Posted by stdjmax
    window.open(href, windowname, 'width=50,height=50,scrollbars=no);
    should be:
    Code:
    window.open(href, windowname, 'width=50,height=50,scrollbars=no');
    Anyways, I've had some problems in FF with scrollbars=no/scrollbars=0 not 'getting it'. I've found that, if in the body tag of the page that you are loading into the new window, if you have like:
    HTML Code:
    <body style="overflow:hidden;">
    There will be no scrollbars, period.
    - 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
  •