Disclaimer: I've been programming for all of fifteen minutes. I'm trying to follow along on Lynda.com's Programming Foundations class, but I can't seem to link my JS to my HTML. They're in the same folder.When I open the HTML file on my browser, I don't get the JS pop-up box that the dude in the video does. What am I doing wrong?
Here's my HTML file:
<html>
<head>
<title>Simple Page</title>
</head>
<body>
<p>This is a very simple HTML page</p>
<script src=“script.js”></script>
</body>
</html>
And here's the JS file titled "script.js" in the same folder as the HTML file.
var name = prompt("What is your name?");
alert("Hello, " + name);