Forum Moderators: open
I have an asp button and in the page_load, I call,
btnOK.attributes.add("onClick", "return myfunction();");
Here's the myfunction:
void myfunction()
{
if (confirm("Are you sure")) return true;
else return false;
}
For some reason, my page is now submitting even though I'm returning false. I've even commented out all of the code and have only had the statement "return false;" and the page still submits. This used to work, but now it doesn't.
Has anyone else experienced this?
I you have any help, please email me at <sorry, no email addresses>.
Thanks!
[edited by: tedster at 8:39 pm (utc) on Sep. 25, 2003]