Results 1 to 2 of 2

Thread: Maximizing or Minimizing DHTML windows

  1. #1
    Join Date
    Aug 2008
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Maximizing or Minimizing DHTML windows

    1) CODE TITLE: DHTML Window widget

    2) AUTHOR NAME/NOTESynamic Drive

    3) DESCRIPTION:

    How can I programatically maximize or minimixe the dhtml windows?




    4) URL TO CODE: http://www.dynamicdrive.com/dynamici...ndow/index.htm

    or, ATTACHED BELOW (see #3 in guidelines below):
    Last edited by ddadmin; 06-19-2009 at 09:17 PM.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    There is no explicit "maximize" function, though what you can do is simply call the public method setSize() with the desired width/height:

    Code:
    googlewin.setSize(w, h)
    As far as "minimize", you can call the internal function:
    Code:
    <a href="#" onClick="dhtmlwindow.minimize(googlewin.controls.firstChild, googlewin)">Minimize Window</a>
    where "googlewin" in the above case is the variable assigned to the DHTML window when you opened it.
    DD Admin

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
  •