By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,516 Members | 1,133 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,516 IT Pros & Developers. It's quick & easy.

OnMouseDown in NN4.7

P: n/a
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>
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
<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

"Jerry O" <je*************@esbi.ie> wrote in message
news:cf*************************@posting.google.co m...
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>

Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.