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

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -