Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <h2>External JavaScript</h2> <p id="demo">A Paragraph.</p> <button type="button" onclick="myFunction()">Click Me</button> <p>This example uses a full web URL to link to "myScript.js".</p> <p>(myFunction is stored in "myScript.js")</p> <script src="https://www.w3schools.com/js/myScript.js"></script> </body> </html>