Событие ondblclick

Событие ondblclick возникает при двойном щелчке на элементе.

Применимо к:

a, abbr, acronym, address, applet, area, b, bdo, big, blink, blockquote, body, button, caption, center, cite, code, dd, del, dfn, dir, div, dl, dt, em, embed, fieldset, font, form, h1-h6, hr, html, i, img, input, ins, isindex, kbd, label, legend, li, listing, map, marquee, menu, nobr, noframes, object, ol, optgroup, option, p, plaintext, pre, q, s, samp, select, small, span, strike, strong, sub, sup, table, tbody, td, textarea, tfoot, th, thead, tr, tt, u, ul, var, xmp

Поддержка браузерами

Действия, вызывающие данное событие

  • Щелчек левой клавишей мыши дважды на том же элементе без передвижения мыши.

Пример

<div ondblclick="alert('Двойной щелчек мыши!')">
    Дважды щелкните мышью на тексте
</div>

Заметки

По теме:

Показать комментарии