Self invoking functions javascript
<p>I wrote a self invoking function in both firefox and chrome it it wouldn't invoke.</p>

<p>I wrote something to the effect of </p>

<pre><code>(function () { alert("THE"); })();
</code></pre>

<p>do self invoking functions not work in current browsers?</p>

<p>Thank you</p>

<p>edit: I did include all essential tags and all other code works on the page</p>
