java - Helps needed for implementing a button action in html page -


problem analysis:

when i'm clicking submit button of html form function related button called , work.after completing work mail notification sent consuming time.after confirmation message displayed on same html (without using ajax i,e page refreshed).

my question , need:

i want avoid user clicking submit button number of times in confusion during waiting period of sending mails.so i'm thinking disable button after pressed once.

1) how it?

2) can please suggest other technique achieve goal without disabling button?

i belive work:

onclick="this.disabled=true" 

Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -