I realized that there is some delay in submitting a javascript confirmation form in Google Chrome during my development.
So, I tried the test with a small html page to make sure that the delay was caused by my application. But this is still happening on the test page.
I just donโt want to acknowledge the onsubmit form event, as there will be several views for different purposes.
So here is my test html.
<html> <head><title>Test</title></head> <body> <script type="text/javascript"> var currentTime = new Date() document.write(currentTime.getMilliseconds()); </script> <form name="input" method="post"> <input type="submit" value="Submit" onclick="javascript:return confirm('Are you sure to submit?');" /> </form> </body> </html>
How can I avoid this delay? Do I need to change anything from my end?
Please correct if this is caused by my html that is not creating a good shape or something is missing.
Thanks.
source share