Answers for "get html javascript"

0

get html tag javascript

document.documentElement
Posted by: Guest on September-26-2021
0

inner content

document.getElementById("myBtn").textContent;
document.getElementById("myBtn").innerHTML;
document.getElementById("myBtn").innerText;
// js dont have innerContent
Posted by: Guest on August-11-2020
1

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>
Posted by: Guest on June-21-2020

Browse Popular Code Answers by Language