Mounir Federere
Mounir Federere

Reputation: 135

How can you make onclick fires only when clicked twice on a div

how can make this happen only if double clicked on the div

  $link='somelink from data base';
    <div onClick="window.location.href='<?php echo $link ;?> ';">xxx</div>

Upvotes: 0

Views: 37

Answers (1)

yezzz
yezzz

Reputation: 3020

 $link='somelink from data base';
<div ondblclick="window.location.href='<?php echo $link ;?> ';">xxx</div>

Upvotes: 1

Related Questions