javascript - Google Chrome form submission with onclick events -
i have small issue submission button in form.
<input type="submit" name="submit" onclick="this.disabled=true;this.value='uploading...';return true;" value="upload" />
i disable button , display text let user know upload being processed. note return true inform chrome still want submit form after execution.
however, despite returning true, google chrome not submit form unless remove onclick
event entirely.
do have put in function in embedded script elsewhere on page , call function in onclick
event?
Comments
Post a Comment