1. The Code is as follows:
1 <! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> 2
2. The effect is as follows:
3. Commonly Used window components: properties, methods, and events
I. Attributes
Plain: boolean type. "true" indicates that the color must be consistent with the background color. The default value is false.
Resizable: boolean type, whether the user can adjust the size of the form. The default value is true, indicating that the size can be adjusted.
Maxinizable: boolean type. true indicates that the maximum button is displayed. The default value is false.
Maximized: boolean type. true indicates that the form is maximized when the form is displayed. The default value is false.
Closable: boolean type. true indicates that the close button is displayed. The default value is true.
BodyStyle: the spacing between the border and the border, for example, bodyStyle: "padding: 3px ".
ButtonAlign: Alignment of buttons (left, center, right) in the form. The default value is right.
CloseAction: "close" releases the memory occupied by the form, and "hide" hides the form. We recommend that you use "hide ".
Ii. Method
Show: Open the form.
Hide: hide a form.
Close: close the form.
Iii. Events
Show: Method of opening the form.
Hide: hide the method used to hide a form.
Close: method when the form is closed.