This site is mobile accessible. Press the "Tap Here" button to use a smaller font-size.

Smartphone icons created by Freepik - Flaticon

Demo External JavaScript

A Paragraph.

This example links to "myScript.js".

(myFunction is stored in "myScript.js")

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

<script src="myScript.js"></script>

function myFunction() {
  document.getElementById("demo").innerHTML = "Paragraph changed.";
}