OnMouseDown in NN4.7

J

Jerry O

Hi,

I am having trouble implemeting the OnMouseDown event in NN4.7 when
used on a Input of type image.

It works in Mozilla and N6.2

Is this a limitation or is there a workaround

Thanks,
Jerry

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">

<script language="JavaScript" type="text/JavaScript">

function SetPointCoordsForNetscape(omdEvent) {

alert('Rising Sun');

}
-->
</script>
</head>
<body>
ClickHere:
<form>
<input TYPE="IMAGE" SRC="towns.GIF" HEIGHT="18" WIDTH="18" BORDER=0
ONMOUSEDOWN="SetPointCoordsForNetscape(event)"
OnKeydown="SetPointCoordsForNetscape(event)" >
</form>

</body>

</html>
 
S

Stuart Palmer

<form onSubmit="SetPointCoordsForNetscape(event)">
<input TYPE="IMAGE" SRC="towns.GIF" HEIGHT="18" WIDTH="18" BORDER=0
ONMOUSEDOWN="this.submit";
OnKeydown="this.submit" >
</form>

Try this.
Have put your function in the onsubmit of the form and it seems to work for
me in ns 4.75, whether there is a difference in 4.7 and 4.75 i don't know.

Hope that helps

Stu
 

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,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top