This has been driving me bananas for hours. If you’re finding that your javascript function is causing your page to post back to itself unexpectedly, then ensure that it returns false at the end of the function. Also void(0) can be your friend.