get html element javascript code example
Example 1: javascript get element by id
var element = document.getElementById("YourElementId");
Example 2: html how to get js
<!--Use The <script> tag to impliment javascript. You can put script
tags in the head or body tags or both. Though most people should put
there script tags in the head tag-->
<script>
console.log("Javascript");
</script>