<!DOCTYPE html>
<html>
<head>
<title>Greetings Earthlings</title>
<script src="HelloWorld.js" />
</head>
<body>
<button onclick ="pressButton()" >Press Me!</button>
</body>
</html>
The code snippet above seems to be missing the button display on the browser.
In the same directory as the HTML file, there is a HelloWorld.js file containing the following code:
function pressButton()
{
alert("Greetings!");
}
Unfortunately, no action takes place when the button is clicked.
Even specifying the full path or ./HelloWorld.js
does not resolve the issue.
This user is operating on a Windows system.