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

'attribute' Example

    
<html>
<body>
<input type="button" 
       value="Get the value of this button" 
       onclick="alert(this.attributes('value').value);">
</body>
</html>

    
      
      








Related examples in the same category

1.'attribute' Syntax and Note
2.'attribute' JavaScript Properties
3.'attribute' JavaScript Methods
4.'attribute' JavaScript collections
5.'attribute' is applied to