CodeToFun
Learn Programming Free
Tutorials
Languages
Features
About
Sign In
Tutorials
Languages
Features
About
Sign In
Back
/
JavaScript Document activeElement Property
Document.activeElement — MDN textarea demo (Try It)
Try It
Run
Reset
Save
Save to Google Drive
Sync with your Google account
Download HTML
Save to your device
Share
Full
HTML Code
Copy
activeElement MDN demo
Select text from one of the text areas:
This is Text Area One. Lorem ipsum dolor sit amet.</textarea>
This is Text Area Two. Fusce ullamcorper nisl ac porttitor.</textarea>
Active element ID:
Selected text:
Lines:
0
| Characters:
0
Live Preview
Auto-refresh on Run