Execute script once for a page
<p>I have added the following script to my asp.net master page</p>

<pre><code>$(function() {

        $("#someDiv").someMethod(900, {
                chars: /\s/,
                doit: [" ( &lt;a href='#' onclick='window.location.reload(true);' class='truncate_show'&gt;more&lt;/a&gt; . . . )", " ( . . . &lt;a href='#' class='truncate_hide'&gt;less&lt;/a&gt; )"]
            });


        });
</code></pre>

<p>Now when the page loads first time, I see the link 'More'. On clicking 'More' a postback occurs and again the script gets fired. I want to stop executing the script once 'more' is clicked and the page gets reloaded.</p>
