The simplest JavaScript in the world won't work!
<p>I have this script in the separate Sample.js file: </p>

<pre><code>function MyPrint(text)
{
 document.write(text);
}
</code></pre>

<p>And I have the following HTML page: </p>

<pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;

&lt;head&gt;
    &lt;title&gt;Silly example&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;div&gt;
        &lt;script type="text/javascript" src="JavaScript/Sample.js"&gt;
            MyPrint("Hello silly world!");
        &lt;/script&gt;
    &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Final result is that the text "Hello silly world!" is NOT printed on the page. What should I do to make this work? I would prefer not to move the script tag to the head, if possible. Thanks. </p>
