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

specified Property

Internet Development Index

Retrieves whether an attribute has been specified.

Syntax

[ bSpecified = ] attribute.specified

Possible Values

bSpecifiedBoolean that receives one of the following values:
trueAttribute is specified.
falseAttribute is not specified.

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

Remarks

An attribute is specified if it is set through HTML or script.

Example

This example uses the specified property to determine the attributes set for an object. The function checks each attribute, and lists all of the attributes of the object and the value of each attribute. In addition, each attribute that is set is displayed.

<SCRIPT>
function fnFindSpecified(){
var oAttributes=oList.attributes;
alert(oAttributes(0).nodeName);
for(var i=0;i<oAttributes.length;i++){
var oNode=document.createElement("LI");
var oNodeValue=document.createTextNode(i + " "
+ oAttributes(i).nodeName + " = "
+ oAttributes(i).nodeValue);
oList.appendChild(oNode);
oNode.appendChild(oNodeValue);
if(oAttributes(i).nodeValue!=null){
alert(oAttributes(i).nodeName
+ " specified: " + oAttributes(i).specified);
}
}
}
</SCRIPT>
<UL ID = oList onclick = "fnFindSpecified()">
<LI>Click to Find Specified Attributes
</UL>

Standards Information

This property is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 Non-Microsoft link.

Applies To

attribute

See Also

About the W3C Document Object Model
绍兴市| 炉霍县| 新建县| 信阳市| 巴中市| 和政县| 鄂托克旗| 工布江达县| 贺兰县| 日土县| 万山特区| 张家口市| 娄烦县| 嵩明县| 含山县| 鲁山县| 富锦市| 柳河县| 朝阳市| 改则县| 南乐县| 莲花县| 浦县| 盐城市| 班玛县| 建德市| 施甸县| 盘山县| 辰溪县| 西畴县| 关岭| 吉林市| 神农架林区| 平潭县| 阿勒泰市| 滕州市| 石棉县| 佛坪县| 佛学| 武隆县| 甘孜县|