As part of a very simple introduction to programming, I am instructed to make a simple HTML file with the following code:
<html>
<head>
<title>Simple Page</title>
</head>
<body>
<p>This is a very simple HTML page</p>
<script src="script.js"</script>
</body>
The file is saved as container.html
In the same folder is a file called script.js, which contains the following:
alert("Hello World");
When I upload an HTML file in Safari 7.0.2, it correctly displays “this is a very simple HTML page” and seems to load something, but the Javascript “Hello World” warning does not appear in the style popup because it is on the instructors computer .
I checked all the settings to make sure Javascript is turned on and the pop-up blocker is turned off. I also tried downloading in Firefox and Crome, but it does not work correctly.
, TextEdit script container.html.