javascript beginner- unable to show message box on screen
<p>I am simply trying to show a message box on screen.</p>

<p>This is the HTML for the button that invokes the message box--- </p>

<pre><code> &lt;button onclick="myFunction()"&gt;Try it&lt;/button&gt;
</code></pre>

<p>This is the relevant javascript function code-- </p>

<pre><code>function myFunction()
{
    alert("Hello World!");
}
</code></pre>

<p>The javascript function is stored at js/fetchdetails.js (path relative to the HTML file).</p>

<p>I have included the JS file in the HTML file using the following code in the head section--</p>

<pre><code>&lt;script src="js/fetchdetails.js"&gt;&lt;/script&gt;
</code></pre>

<p>What am I doing wrong here? </p>
