form submit button to processing, please wait

Discussion in 'HTML & Website Design' started by leeds1, May 17, 2005.

  1. #1
    I have a regular forum in regular html with the regular "submit" button

    I want , after the user has press this button, for the text to change to something like "processing, please wait"

    normally processing takes 1 second but sometimes can take 5/6 secs and I don't want people to abandon their purchase

    any ideas ?
     
    leeds1, May 17, 2005 IP
  2. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can try this:

    <input ... value="Submit" onClick="this.value = 'Wait!'">

    J.D.
     
    J.D., May 17, 2005 IP
    lycrafile likes this.
  3. anotherchancetosee

    anotherchancetosee Guest

    Messages:
    53
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Try putting the Submit button within a DIV and replacing the DIV's innerHTML with "PLEASE WAIT" message.

    <form action="target.asp" onsubmit="document.getElementById('submitdiv').innerHTML='Please Wait'">
    other fields
    <div id="submitdiv">
    <input type="Submit" value="Submit" id="Submit" name="Submit"/>
    </div>
    </form>
     
    anotherchancetosee, May 20, 2005 IP