I have added the following script to my asp.net master page
$(function() {
$("#someDiv").someMethod(900, {
chars: /\s/,
doit: [" ( <a href='#' onclick='window.location.reload(true);' class='truncate_show'>more</a> . . . )", " ( . . . <a href='#' class='truncate_hide'>less</a> )"]
});
});
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.