<!DOCTYPE html>
<html>
<body>
<h2>External JavaScript</h2>
<p id="para">A Paragraph.</p>
<button type="button" onclick="myFunction()">Try it</button>
<p>(myFunction is stored in an external file called "myScript.js")</p>
<script src="xjs.js"></script>
</body>
</html>
<html>
<body>
<h2>External JavaScript</h2>
<p id="para">A Paragraph.</p>
<button type="button" onclick="myFunction()">Try it</button>
<p>(myFunction is stored in an external file called "myScript.js")</p>
<script src="xjs.js"></script>
</body>
</html>
v
No comments:
Post a Comment