开发者

cancel button not working

my cancel button redirects to another page.

onClick='window.location="../nsmapi-ui/ListMessageSetup.jsp"'

in safari when click this button it also save values into database. my save button ha开发者_C百科s another onclick event which doesnot fire on cancel button.


Maybe you should remove the type="submit" from the button.

Regards.


I'm trying to understand your question, and I believe you are saying that you have two onClick events, one that is shared by both the save and the cancel buttons, and one that is unique to the cancel button, which you posted above.

I think the problem is that when you redirect someone, the second onClick even does not fire becaues they have already left your page and being redirected to another page already.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜