Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
HTML DOM activeElement Property
The HTML DOM activeElement property is a read-only property to return the currently focused element in the document.
Following is the syntax ?
document.activeElement
Let us now see an example to implement the DOM activeElement property ?
Example
Heading Two
Click in the element to get the active element.
Output

Now, click the element to display the same currently active element ?

Advertisements
