+ Reply to Thread
Results 1 to 4 of 4

Thread: Vertical Scrolling in pop-up window

  1. #1

    Default Vertical Scrolling in pop-up window

    How to get vertical scrolling in popup window?

    I have used 'scrollbars=yes' but didn't work?

    Pls help

  2. #2
    Ruby Star member nobita_deptrai is on a distinguished road
    Join Date
    Jun 2011
    Posts
    458

    Default

    By default popups don't have scroll bars. This is a problem if the content of the popup takes up more space than the first page. It's usually a good idea to set the popup with scroll bars. Set the popup with scroll bars by setting the scrollbars property to yes.
    So, for example, this open() command in the popup script opens a popup with scrollbars:

    window.open(href, windowname, 'width=400,height=150,scrollbars=yes');

    which gives us this popup.

    In situations where a scrollbar isn't actually needed because the content doesn't fill up even a single window, MSIE and Netscape handle things a little differently. MSIE puts a greyed out scroll bar, Netscape doesn't put any scroll bar at all. Neither of them puts a horizontal scroll bar in the window if it is not needed.
    BDS Real Estate Company
    Go to my website rao vat ban nha to learn about real estate in Vietnam: Home sales , Apartment for sale, Feng Shui ...

  3. #3

    Default

    et the window.open features like this:

    "scrollbars=auto,toolbar=no,menubar=no,status=no,w idth=400,height=400"

    As long as your page content is in a fluid container and isn't wider than your popup, you won't get a bottom scroll bar.

  4. #4

    Default

    I guess what is happening is that the text is disappearing at the bottom of the page, is that correct? Pop-ups are not very smart when it comes to resize themselves to fit your content, you might try setting the scrollbars = yes, but will shift lower bar too I think, only allows Mozilla individual control of the x, y and scroll bars as far as I know.

+ Reply to Thread

Posting Permissions

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