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

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -