dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: replace button with image

  1. #1
    Join Date
    Dec 2003
    Location
    Malaysia
    Posts
    206

    Exclamation replace button with image

    i have a button
    <input type="button" name="delete" value="Delete">

    i want to replace it with an image ... how to do it?

    if i want to have a submit button then i can just change
    <input type="submit" name="delete" value="Delete">
    to
    <input type="image" scr="../../graphics/delete.gif" name="delete" value="Delete">

    but now my input type is "BUTTON" and not "SUBMIT" .. so anyidea how to change the input type="button" into a image button?

  2. #2
    Join Date
    Sep 2003
    Posts
    47

    ???

    First of all, for the "input type", it's a standard, fixed instruction computers can undertand e.g, reset, delete, submit BUT not the word "image".

    And based from the desciption of your problem, you want this button to act as "delete"? Why would anyone want to click on a button which says "image" to delte something.

    I suggest, you create that button you want.
    Try here->http://www.aaa-buttons.com/

    Good Luck!

  3. #3
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,279
    <button><img alt="delete" src="delete.png"></button>
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  4. #4
    Join Date
    Aug 2003
    Location
    In my house
    Posts
    4,004

    Re: ???

    Originally posted by oceanmaid
    First of all, for the "input type", it's a standard, fixed instruction computers can undertand e.g, reset, delete, submit BUT not the word "image".
    That's actually not true.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles