Remove scripts totally?
<p>I am building an AJAX website which uses AJAX to replace links. In the different pages they have included different <code>&lt;script&gt;</code>s:</p>

<pre><code> &lt;script class="ajax"&gt;
     var blah = blah;
     function abc(){
         Blah.blah.blah();
     }
 &lt;/script&gt;
 &lt;p&gt;
     Blah blah blah blah blah...
 &lt;/p&gt;
</code></pre>

<p>And when the client clicks the link, the page will load the new contents and remove the scripts.</p>

<pre><code>$("script.ajax").remove();
$("p").html(data);
</code></pre>

<p>But here's the problem. Although the <code>script</code> tag is removed, the function <code>abc</code> is still there, and I can't get rid of it. (variables also) I can't use :</p>

<pre><code>abc = undefined;
</code></pre>

<p>since every page has different functions. Is it possible to achieve that or is it not even possible? Thanks.</p>
