JavaScript mendapatkan elemen dengan id
var element = document.getElementById("YourElementId");
Batman
var element = document.getElementById("YourElementId");
document.getElementById("someid");
document.getElementById('numbers').value
<h1 id="demo">
<style>function demoFunction()
{document.getElementById("demo"). //Add what you want to change right here.}
</style>
function changeColor(newColor) {
var elem = document.getElementById('para');
elem.style.background-color = newColor;
}
document.getElementById("test")