JavaScript - getAttributeNodeNS() method

revision:


Category : element

The getAttributeNodeNS() method returns the Attr node for the attribute with the given namespace and name.

Syntax :

        getAttributeNodeNS(namespace, nodeName)
    

Parameters:

namespace : is a string specifying the namespace of the attribute.

nodeName : is a string specifying the name of the attribute.

Examples:

           
        

Practical examples

example:
code:
                    
                

example:
code:
                    
                

example:
code: