images and buttons HTML question

A

abcd

Very basic HTML question

1. I have image I want to display that to a button how can I do that. I
want to fire the on click event too
2. if 1 is not possible then how can I set image to have oncclick event,
currently I get object nbot found error

code is like this

<button ID ="Sel" name="Sel" OnClick="moveOptions(this.form.AvailableInd,
this.form.SelectedInd);" ><img src = "/images/movedown.gif" alt="Remove"
title="Remove"></button>

<button ID ="Del" name="Del" OnClick="moveOptions(this.form.SelectedInd,
this.form.AvailableInd);" ><img src= "/images/moveup.gif" alt="Add"
title="Add"></button>

above code shows me the button which I dont want and just want to display
image when I tried following code, moveoptions doesnt work

<img src = "/images/movedown.gif" alt="Remove" title="Remove"
OnClick="moveOptions(this.form.AvailableInd, this.form.SelectedInd);">

<img src= "/images/moveup.gif" alt="Add" title="Add"
OnClick="moveOptions(this.form.SelectedInd, this.form.AvailableInd);" >


any clues
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top