Click to See Complete Forum and Search --> : Mouse Events Supported By NN4


Geat
02-11-2003, 05:20 AM
Can anyone tell me which mouse events are supported within an <input type="image"> tag in NN4.x?

onClick isn't working...

gil davis
02-11-2003, 06:03 AM
According to http://developer.netscape.com/docs/manuals/htmlguid/tags10.htm#1312530, there are no events supported by <input type="image">. The only action is "submit the form".

I have not been able to find the button in the DOM anywhere, even though View|Page Info seems to know that there is an image.

I would suggest that you use an image link instead of the form input, unless you need the special feature of type="image": x-y coordinates from the click. That method will also work in other browsers.

Geat
02-11-2003, 06:09 AM
NN4.x doesn't support onclick in IMG tags though, does it?

gil davis
02-11-2003, 06:28 AM
By image link, I mean

<a href="..." onclick="document.formName.submit();return false"><img src="..." border=0></a>

BTW, I have been able to add an event to an image in NS 4. Interested?

Geat
02-11-2003, 06:31 AM
Interested? You bet yah!

gil davis
02-11-2003, 06:41 AM
<img name="i1" src="lilguy2.gif"
onLoad="this.onmouseover=function () {window.status='This is the little guy'; return true};
this.onmouseout=function () {window.status=''};
this.onmousedown=function () {alert('Hey, you clicked me!')}">

No matter what I try though, onclick just won't work.