I wrote a test link :
<%= link_to("test dbl click", root_url, :ondblclick => "alert('Double
the double click event is captured (alert displayed) but at the same
time the home page is also displayed , is there a way to wait for the
ok on the panel before executing the link?