Hi,

Is it possible to use images for a button instead of the normal button?
I am not trying to link it to another page over here but, getting it to trigger some event like a normal button.
Thanks alot.

Regards,
heels

Recommended Answers

All 4 Replies

<html>
<head>
<script type="text/javascript">
function showmsg() {
	alert("welcome!");
}
</script>
</head>
<body>
<input type="image" src="calendar.jpg" onclick="javascript: showmsg();" />
</body>
</html>

Like this..

:'( I am lil too late to reply !

hahaha, so cute. Thanks guys. Will check out the website and try out nav33n's method too :). You're not too late but you gave me another idea to try too.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.