<button> tag HTML help!?

ninjn2

New member
I want to create multiple images that are buttons using html...

<BUTTON TYPE=SUBMIT>
<IMG SRC="URL">
</BUTTON>

...and I want to create a box with a width of 200px that when you click the button will display a particular text.

Ex) A picture of a phone that when clicked displays a phone number in the 200px text box below it.
I want to click on an image and have it display text in a text box.
Without using JavaScript
 
<html>
<head>
<title>test</title>
<script type="text/javascript" language="javascript">
function showPhoneNo() {
document.getElementById("wtf")
.innerHtml="the phone number is";
document.getElementById("omfg")
.value="0987-654-3210";
}
</script>
</head>
<body>
<a href="javascript:showPhoneNo()">
<img src="iphone.jpg" />
</a>
<div id="wtf">
click the image to show the phone number
</div>
<input id="omfg" type="text" value="" />
</body>
</html>
 
Back
Top