Wednesday, 4 July 2012

Dont write explicitly javascript:Calling a return type js function on event binding


Don't write javascript while returning a function on some event binding.

Ex-<input type="button" value="Submit" onclick="return javascript:ConfirmClientForRelocation()"/>

Here google chrome is not catch this so use instead

Ex-<input type="button" value="Submit" onclick="return ConfirmClientForRelocation()"/>

No comments:

Post a Comment