Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

onDblClick

Status
Not open for further replies.

greyone

Programmer
Dec 14, 2000
200
CA
Is there a way to disable double clicks on a page including links and buttons so that i can force the user to click only once.
I tried using the following code but it seems to give me an error in IE.

window.captureEvents(Event.DBLCLICK);

function handle(evnt)
{
return false;
}

window.onDblClick=handle
 
try not using the captureEvents() method and use
Code:
document.ondblclick=handle;
.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top