Change submit image src

Discussion in 'JavaScript' started by papa_face, Oct 6, 2007.

  1. #1
    Hello,
    How do I change the src of this submit button when it is clicked?

                    <form action="file.php" method="post" name="links">
                    <input name="url" type="text" class="downloadurl" />
                    <input type="image" id="downloadbutton" src="imgs/download.gif" value="Download" name="submitbutton" alt="Submit">
                    </form>
    Code (markup):
    Any help would be appreciated.

    regards
     
    papa_face, Oct 6, 2007 IP
  2. papa_face

    papa_face Notable Member

    Messages:
    2,237
    Likes Received:
    67
    Best Answers:
    1
    Trophy Points:
    285
    #2
    Got this figured out thanks.
     
    papa_face, Oct 6, 2007 IP
  3. papa_face

    papa_face Notable Member

    Messages:
    2,237
    Likes Received:
    67
    Best Answers:
    1
    Trophy Points:
    285
    #3
    I understand the the conventional window.stop(); doesnt work in IE, and I have heard that invoking the key code 27 for escape will stop the page.

    How can I make that happen?

    regards
     
    papa_face, Oct 6, 2007 IP