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

expando Property

Internet Development Index

Sets or retrieves a value indicating whether arbitrary variables can be created within the object.

What's New for Microsoft® Internet Explorer 6

This property now applies to the attribute object.

Syntax

object.expando [ = bExpand ]

Possible Values

bExpandBoolean that specifies or receives one of the following values.
trueDefault. Creation of arbitrary variables is allowed.
falseCreation of arbitrary variables is not allowed.

The property is read/write. The property has a default value of true.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.

Remarks

You can extend the properties on an object by creating arbitrary properties with values. You should be careful, however, because you can unintentionally set a property value when scripting in a case-sensitive language such as Microsoft JScript®. For example, if the property value is borderColor and you type the value "bordercolor = 'blue'", you have, in fact, created another property on the style object called bordercolor with the value 'blue'. If you query the value of the property, the value "blue" is returned. However, the borders for the element do not turn blue.

Microsoft Visual Basic® Scripting Edition (VBScript) does not support expando properties on its native language objects, nor does it cause Internet Explorer to create expando properties on its objects. Internet Explorer supports creation of expando properties on its objects, in any language, through setAttribute.

Setting the expando property of the document object to false precludes the functionality of all expandos within the document.

Examples

The following example demonstrates that, by setting the expando property of the document object to false, the document ignores the UNSELECTABLE expando on the span and allows you to select the text.

<HTML>
<HEAD>
<SCRIPT>
//Set the expando property to false.
document.expando = false;
</SCRIPT>
</HEAD>
<BODY>
<DIV>
<SPAN id="oSpan" unselectable="on">
This text should be selectable.</SPAN>
</DIV>
</BODY>
</HTML>
This feature requires Microsoft® Internet Explorer 4.0 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

Using the previous example and setting the expando property of the document object to true, the span will not allow you to select the text.

<HTML>
<HEAD>
<SCRIPT>
//Set the expando property to true.
document.expando = true;
</SCRIPT>
</HEAD>
<BODY>
<DIV>
<SPAN id="oSpan" unselectable="on">
This text should not be selectable.</SPAN>
</DIV>
</BODY>
</HTML>
This feature requires Microsoft® Internet Explorer 4.0 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

Standards Information

There is no public standard that applies to this property.

Applies To

attribute, document
屏边| 包头市| 红河县| 金平| 潮州市| 文成县| 宽城| 定日县| 湘西| 苍溪县| 张家界市| 华安县| 秦安县| 天门市| 沁水县| 佛山市| 广宁县| 独山县| 同心县| 紫金县| 宣汉县| 甘泉县| 富川| 高碑店市| 金川县| 广州市| 九龙县| 夏津县| 湖南省| 元氏县| 吴堡县| 邢台市| 兴仁县| 梁平县| 五指山市| 洪湖市| 海门市| 彰化市| 航空| 芷江| 仙居县|