PDA

View Full Version : Maximizing or Minimizing DHTML windows


houstonrca
06-19-2009, 03:00 AM
1) CODE TITLE: DHTML Window widget

2) AUTHOR NAME/NOTES:Dynamic Drive

3) DESCRIPTION:

How can I programatically maximize or minimixe the dhtml windows?




4) URL TO CODE: http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm

or, ATTACHED BELOW (see #3 in guidelines below):

ddadmin
06-19-2009, 10:40 PM
There is no explicit "maximize" function, though what you can do is simply call the public method setSize() with the desired width/height:

googlewin.setSize(w, h)

As far as "minimize", you can call the internal function:

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