I am having problem in doubleclick event in safari.The following example is working good in IE or Mozila but the dblclick event on select item almost takes twice or three times.On the other hand the dblclick event on body tag is working good in safari too.
<HTML>
<HEAD>
<TITLE>Using the ondblclick Event</TITLE>
<script LANGUAGE="Javascript">
function display()
{
document. form1. text1. value = "You double clicked this Web page!"
}
function display2()
{
alert('test');
}
</SCRIPT>
</HEAD>
<BODY ondblclick="display() " ID="body1">
<H1>Using the ondblclick Event</H1>
<FORM NAME="form1">
<INPUT TYPE="TEXT" ID="text1" SIZE="60"></INPUT>
</FORM>
<select id="colors" ondblclick="display2()" >
<option id="red" value="red" >red</option>
<option id="blue" value="blue" >blue</option>
</select>
</BODY>
</HTML>
Can anyone help me in this?
Thanks
Arvind Thakur

New Topic/Question
Reply


MultiQuote



|