How to include JavaScript in <script> tag instead in element tag
<p>I know how to put javascript in an element directly, like:</p>

<pre><code>&lt;div onclick="this.style.opacity='0'"&gt;Some Text&lt;/div&gt;
</code></pre>

<p>Or</p>

<pre><code>&lt;div onmouseover="this.style.opacity='0'"&gt;Some Text&lt;/div&gt;
</code></pre>

<p>etc.</p>

<p>But Instead of using javascript in the element tag how can we provide the same action by putting the js code in <code>&lt;script&gt;</code> tag. Please help me <strong>Webmasters</strong></p>
