'namespace' Example : namespace « Javascript Objects « JavaScript Reference

'namespace' Example

    
<html xmlns:namespace1 xmlns:namespace2>
<button onclick="alert(document.namespaces(0).name);">
Name of first namespace on the page
</button>
</body>
</html>

    
      
      








Related examples in the same category

1.'namespace' Syntax and Note
2.'namespace' JavaScript Properties
3.'namespace' JavaScript Methods
4.'namespace' is applied to
5.'namespace' Event handlers