Answers for "javascript script html"

10

javascript with html

// this how add javascript file in html !!


<script type="text/javascript" src="yourJavascript.js"></script>
Posted by: Guest on May-31-2021
3

how to use javascript in html

<!-- If JS is in external file: -->
<script src="filename.js" charset="utf-8"></script>

<!-- If you want JS in the your HTML file -->
<script>
  /*Your JS Code Here*/
</script>
Posted by: Guest on June-30-2021
-3

how to use script tag

<script>
 document.getElementById("id").innerText = ("");
</script>
Posted by: Guest on September-22-2020

Browse Popular Code Answers by Language