javascript file talk to script in html file
<p>Is there a way of calling a function that exists in a HTML file from a .js file?</p>

<p>Something like this:</p>

<p>HTML file:</p>

<pre><code>&lt;script type="text/javascript" src="javaFile.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
    function doSomething() {
    };
&lt;/script&gt;
</code></pre>

<p>javaFile.JS file:</p>

<pre><code>htmlFile.doSomething();
</code></pre>

<p>? Thanks :)</p>
