Tutorial by Examples

<script src="example.js"></script> The src attribute works like the href attribute on anchors: you can either specify an absolute or relative URL. The example above links to a file inside the same directory of the HTML document. This is typically added inside the <head&gt...
Instead of linking to an external file, you can also include the JS code as-is in your HTML: <script> // JavaScript code </script>
<script type="text/javascript" src="URL" async></script>
It is possible that the client browser does not support Javascript or have Javascript execution disabled, perhaps due to security reasons. To be able to tell users that a script is supposed to execute in the page, the <noscript> tag can be used. The content of <noscript> is displayed whe...

Page 1 of 1