JavaScript Reference/Javascript Methods/urns
"urns()" Example
<html>
<body>
<script language="JavaScript">
function function1() {
var m = document.all.urns("clientCaps");
if (m) {
alert("YES");
} else {
alert("NO");
}
}
</script>
<input type="button"
value="Is there any "clientCaps"
behavior attached to this page?"
onClick="function1();">
</body>
</html>
"urns()" is applied to
Names noted with an asterisk (*) are JavaScript properties only.
+----------------+--------------------------------------------------------------+
| Applied_To |all* anchors* |
| |applets* areas* |
| |boundElements* cells* |
| |childNodes* children* |
| |elements* embeds* |
| |<form> forms* |
| |images* links* |
| |options* rows* |
| |scripts* <select> |
| |styleSheets* tBodies* |
+----------------+--------------------------------------------------------------+
"urns()" Syntax, Parameters and Note
Note:
Returns a list of elements with the specified behavior attached.
Returns null if no behavior found.
Syntax:
document.all.elementID.urns(param1)
collectionName.urns(param1)
Parameters:
param1 Required; the behavior"s name.