JavaScript DHTML/Document/URN

Материал из Web эксперт
Перейти к: навигация, поиск

Tag Urn Example

    
<HTML XMLNS:wbex="http://www.wbex.ru">
<button onclick="alert(myA.tagUrn);">Tag Urn</button>
<wbex:HELLO ID="myA">
</html>



"urn" Example

    
<html>
<body>
<script language="JavaScript">
    function function1() {
        var m = document.all.myLink.urn; 
        alert(m);
    }
</script>
<input type="button" value="Get the urn" onclick="function1();">
<a id="myLink" href=http://www.wbex.ru/ urn="wbex.ru Website">wbex.ru web page</a>
</body>
</html>



"urns()" Example

    
<html>
<body>
<script language="JavaScript">
function function1() {
    var flag = document.all.urns("clientCaps");
    if (flag) {
        alert("YES");
    } else {
        alert("NO");
    } 
} 
</script>
<input type="button" 
       value="Is there any "clientCaps" 
       behavior attached to this page?" onClick="function1();">
</body>
</html>