How to use External JavaScript form another URL

Javascript / Overview of Javascript

320

Program:

<!DOCTYPE html>
<html>
<body>

<h2>External JavaScript</h2>

<p id="demo">A Paragraph.</p>

<button type="button" onclick="myFunction()">Try it</button>

<p>(myFunction is stored in an external file called "ExternalScript.js")</p>

<script src="https://www.atnyla.com/js/ExternalScript.js"></script>

</body>
</html>

Output:

None

Explanation:

None

This Particular section is dedicated to Programs only. If you want learn more about Javascript. Then you can visit below links to get more depth on this subject.