1// this how add javascript file in html !!
2
3
4<script type="text/javascript" src="yourJavascript.js"></script>
1<script type="text/javascript">
2 alert("This alert box was called with the onload event");
3</script>
1<!-- If JS is in external file: -->
2<script src="filename.js" charset="utf-8"></script>
3
4<!-- If you want JS in the your HTML file -->
5<script>
6 /*Your JS Code Here*/
7</script>