1 Replies - 6436 Views - Last Post: 29 June 2011 - 12:32 AM

#1 arvindthakur  Icon User is offline

  • D.I.C Head

Reputation: 4
  • View blog
  • Posts: 133
  • Joined: 07-June 11

double click event in safari

Posted 20 June 2011 - 03:15 AM

Hi Guys,

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

Is This A Good Question/Topic? 0
  • +

Replies To: double click event in safari

#2 arvindthakur  Icon User is offline

  • D.I.C Head

Reputation: 4
  • View blog
  • Posts: 133
  • Joined: 07-June 11

Re: double click event in safari

Posted 29 June 2011 - 12:32 AM

Can some one try this example in your safari browser.I am having the problem that the alert box requires double click to disappear from the screen.If anyone getting no issues in this example please send me your safari browser version or any way to short out this problem.I really the solution of the problem.


<HTML>
<HEAD>
<TITLE>Using the ondblclick Event</TITLE>
<script LANGUAGE="Javascript">

function display()
{
alert('test');
}

</SCRIPT>
</HEAD>
<BODY>
<input type="button" value="Click Here!" onclick="display();" />
</BODY>
</HTML>

I will be very thankfull for your replies.

Thanks in advance!

Regards,

Arvind
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1