DOM
document.getElementById()
Learn how to use document.getElementById() in JavaScript.
document.getElementById()
Documentation for document.getElementById() in JavaScript.
Syntax
document.getElementById("app")
Example
// Practical usage
document.getElementById("app")
console.log("Executed successfully.");
Notes
JavaScript provides powerful built-in methods for the web.
Try It Yourself
You can run JavaScript directly in the BrowserCode Playground.