MAXIMIZEBUTTON Attribute | maximizeButton Property

Sets or gets a Boolean value that indicates whether a Maximize button is displayed in the title bar of the HTML Application (HTA) window.

Syntax

HTML <HTA:APPLICATION MAXIMIZEBUTTON = bShowButton... >
Scripting [ bShowButton = ] HTA:APPLICATION.maximizeButton

Possible Values

bShowButton A Boolean that specifies one of the following values.
yes
Default. Maximize button is displayed.
no
Maximize button is not displayed.

The property is read-only. The property has a default value of yes.

Remarks

Note  The maximizeButton property is read-only; however, the MAXIMIZEBUTTON attribute can be used to set the initial value.

The window must have a title bar or caption for the Minimize button and the Maximize button to display.

Example

This example shows how to get the maximizeButton property.

<HTML>
<HEAD>
   <TITLE>Hello, World!</TITLE>
   <HTA:APPLICATION ID="oHTA"
    APPLICATIONNAME="myApp"
    CAPTION="yes"
    MAXIMIZEBUTTON="yes"
   >
   <SCRIPT>
      alert("maximizeButton    = " + oHTA.maximizeButton);
   </SCRIPT>
</HEAD>
<BODY SCROLL="no">

</BODY>
</HTML>

Code example: https://samples.msdn.microsoft.com/workshop/samples/author/hta/hta_allEX.hta

Applies To

HTA:APPLICATION

See Also

Introduction to HTML Applications (HTAs)