Advanced Search

Results 1 to 2 of 2

Thread: How to Resize DHTML Window to Maximum?

  1. #1
    Join Date
    Oct 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to Resize DHTML Window to Maximum?

    1) Script Title: DHTML Window widget (v1.03)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/

    3) Describe problem: When the DHTML window opens, I would like it to automatically fit whatever the maximum available screen space is (obviously excluding browser menu, toolbars, etc.). Can this be done? If so, can someone please tell me how to do this? Thanks.

  2. #2
    Join Date
    Aug 2004
    Posts
    9,864
    Thanks
    3
    Thanked 960 Times in 949 Posts
    Blog Entries
    15

    Default

    After the DHTML window has been opened, try calling the methods moveTo() and setSize() as follows:

    Code:
    googlewin.moveTo(0,0)
    googlewin.setSize(dhtmlwindow.docwidth-6, dhtmlwindow.docheight-40)
    Where "googlewin" is the unique identifier variable you used when opening the window. You may need to adjust "6" and "40" slightly though to get the exact dimensions of the viewable browser window.

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
  •