// this how add javascript file in html !!
<script type="text/javascript" src="yourJavascript.js"></script>
<!-- include an external javascript document -->
<script src="myJavaScript.js" charset="utf-8"></script>
<!-- JavaScript inside html element -->
<script>
console.log("This is JavaScript");
</script>
<script>
function alert () {
alert("Javascript has started");
}
</script>
Code Example |
---|
Html :: on click in a tag |
Html :: bootstrap start |
Html :: image cut by div border |
Html :: how to change font colour in html |
Html :: html css javascript free online course |
Html :: youtube start end |
Html :: comment a div in html |
Html :: default value input |
Html :: <p tag html |
Html :: image as banner html |
Html :: password input type in html |
Html :: tag img |
Html :: html floating text |
Html :: run another Html in html |
Html :: accept vedio pdf files upload html |
Html :: spaces html |
Html :: html heading elements |
Html :: how to download file html button |
Html :: close hamburger menu fontawesome |
Html :: how to increase width of td in html |
Html :: navbar horizontal in html |
Html :: make checkbox required |
Html :: vue button prevent double click |
Html :: angular foreach html |
Html :: html new line without <br |
Html :: convert element to html string |
Html :: bold text in html |
Html :: pug meta viewport |
Html :: html table cell color based on value |
Html :: basic html boilerplate |