I'm working on a simple HTML page where I have this image that I want to act as a button.
Here is the code for my image:
<div style="position: absolute; left: 10px; top: 40px;">
<img src="logg.png" width="114" height="38">
</div>
And basically I want to add this functionality into it:
<div>
<input id="saveForm" name="saveForm" class="btTxt submit" type="submit" value="Submit"/>
</div>
The text on the button itself that says Submit is not needed as my image has the text it needs.
So anyway, is this possible? and if so, How? :)
You could use an image submit button:
<input type="image" id="saveform" src="logg.png " alt="Submit Form" />
You could implement a JavaScript block which contains a function with your needs.
<div style="position: absolute; left: 10px; top: 40px;">
<img src="logg.png" width="114" height="38" onclick="DoSomething();" />
</div>
Source: Stackoverflow.com