Run
Online Code Editor
The getAttribute Method
Welcome to the javaTpoint.com
Example of the getAttribute() Method
This is the div element.
javaTpoint.com
Click me!