Results 1 to 3 of 3

Thread: Change Submit Button's Caption- Javascript -[RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member rockies1's Avatar
    Join Date
    Jul 1999
    Location
    Stuck at work
    Posts
    375

    Change Submit Button's Caption- Javascript -[RESOLVED]

    I'm looking for a way to change a submit button's caption as soon as it is clicked.

    I want to disable it and make it say "Searching"

    I can do the disable
    Code:
     <!-- Begin Disable submit button
    function disableForm(theform)
    {
      if (document.all || document.getElementById)
      {
        for (i = 0; i < theform.length; i++)
        {
          var tempobj = theform.elements[i];
          if (tempobj.type.toLowerCase() == "submit")
          {
            tempobj.disabled = true;
          }
        }
        return true;
      }
    }
    //  End Disable submit button-->
    but not the caption change.

    Can anyone help?

    Thanks!
    Last edited by rockies1; Oct 27th, 2003 at 12:50 PM.
    Morgan
    [email protected] - Home
    [email protected] - Work
    Using VB6 SP6 but trying to learn VB2005EE

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width