Demo Three

For the purpose of this demo, you have to emagine that the form posts to a page that creates file for you to download.

Thus, the post never takes you away from this page. If we were using the JavaScript from demo two, then 'please wait...' message would be there for good.

Use to form below to see how the SetTimeout function resets the text of the button after 5 seconds.

Download Orders

Back to the main article.