Answers for "how to put js in html"

8

git credentials

# this will store your credentials "forever"
git config --global credential.helper store
Posted by: Guest on June-09-2020
80

import js in html

<script type="text/javascript" src="yourfile.js"></script>
Posted by: Guest on February-23-2020
59

include script in html

<script type="text/javascript" src="/path/to/script.js"></script>
Posted by: Guest on July-17-2020
1

how to use js in html

<script>
  function alert () {
    alert("Javascript has started");
  }
</script>
Posted by: Guest on September-08-2021
6

how to put javascript in HTML

<script>
  //put your java script here
  </script>
Posted by: Guest on March-21-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

Browse Popular Code Answers by Language