<html> <head> </head> <body> <script type="text/javascript" src="xxx.js"> </script> <p> The actual script is in an external script file called "xxx.js". </p> </body> </html>
Your Result:
Edit the code above and click to see the result.
W3Schools.com
- Try it yourself