www.fgks.org   »   [go: up one dir, main page]

Click to Rate and Give Feedback
CONTEXTMENU Attribute | contextMenu Property

Sets or gets a string value that indicates whether the context menu is displayed when the right mouse button is clicked.

Syntax

HTML<HTA:APPLICATION CONTEXTMENU = sContextMenu... >
Scripting[ sContextMenu = ] HTA:APPLICATION.contextMenu

Possible Values

sContextMenu A String that specifies one of the following values.
yesDefault. Context menus are displayed.
noContext menus are not displayed.

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

Remarks

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

Example

This example shows how to get the contextMenu property.

<HTML>
<HEAD>
<HTA:APPLICATION 
 ID=oHTA 
 CONTEXTMENU="no"  
/>
<TITLE>HTA Properties</TITLE>
<STYLE>
BODY {font-size: 8pt; font-family: Arial;}
</STYLE>
</HEAD>

<SCRIPT>
function readFun()
{
alert("The contextMenu property is set to:  " + oHTA.contextMenu);
}
</SCRIPT>

<BODY> 
<P>Read the property: 
<INPUT TYPE="button"  VALUE="Test contextMenu value" />
</P>
</BODY>
</HTML>

Standards Information

There is no public standard that applies to this property.

Applies To

HTA:APPLICATION
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker
DCSIMG