最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

menuArguments Property

Internet Development Index

Returns the window object where the context menu item was executed.

Syntax

[ oWindow = ] external.menuArguments

Possible Values

oWindowVariant that receives where the context menu was opened.

The property is read-only. The property has no default value.

Remarks

This property is accessible only through script specified in the registry for a new context menu entry.

The menuArguments property returns an object reference of the window where the context menu was opened. The event object is exposed through this object reference, allowing authors to query the srcElement, clientX, and clientY properties.

For more information about how to implement extensions to the Dynamic HTML (DHTML)燚ocument Object Model (DOM), see About the Browser. For more information about how to add an entry into the standard context menus in Microsoft® Internet Explorer, see Adding Entries to the Standard Context Menu.

This property is not supported in HTML Applications.

Example

This example uses the menuArguments property to change selected text to uppercase, or to insert text if nothing is selected.

<SCRIPT LANGUAGE = "JavaScript">
// Get the window object where the context menu was opened.
var oWindow = window.external.menuArguments;
// Get the document object exposed through oWindow.
var oDocument = oWindow.document;
// Get the selection from oDocument.
// in oDocument.
var oSelect = oDocument.selection;
// Create a TextRange from oSelect.
var oSelectRange = oSelect.createRange();
// Get the text of the selection.
var sNewText = oSelectRange.text;
// If nothing was selected, insert some text.
if (sNewText.length == 0){
oSelectRange.text = "INSERT TEXT";
}
// Otherwise, convert the selection to uppercase.
else{
oSelectRange.text = sNewText.toUpperCase();
}
</SCRIPT>

Standards Information

There is no public standard that applies to this property.

Applies To

external
武平县| 油尖旺区| 永新县| 东辽县| 黄石市| 汕头市| 德令哈市| 漳浦县| 十堰市| 芦溪县| 肇源县| 霍林郭勒市| 西盟| 抚顺市| 浑源县| 靖边县| 隆化县| 邛崃市| 龙州县| 梧州市| 禄劝| 灌阳县| 文成县| 白朗县| 宁津县| 华亭县| 昂仁县| 长海县| 新宁县| 阿合奇县| 班戈县| 孝昌县| 吉安县| 新津县| 昌江| 溧阳市| 广安市| 丽水市| 汝城县| 洱源县| 长汀县|