ondblclick

1. 基本情報

説明 要素がダブルクリックされた時に実行するスクリプトを記述する
語源 ON this element being DouBLeCLICKed
値の型 Script (CDATA)
解説 要素がダブルクリックされた時に実行するスクリプトを記述します。
使用要素 map, body, hn, p, div, span, em, strong, dfn, abbr, acronym, q, blockquote, cite, address, code, samp, kbd, var, pre, a, dl, dt, dd, ol, ul, li, object, big, small, b, i, sup, sub, tt, hr, del, ins, form, fieldset, legend, label, input, button, textarea, select, optgroup, option, table, caption, thead, tfoot, tbody, tr, th, td, colgroup, col, img, area, noscript, link, ruby, rbc, rb, rtc, rt, rp

2. 解説

2-1. 概要

ondblclick属性は、同じスクリーン座標で2回続けてclickイベントが発生した時に実行するスクリプトを記述します。clickイベントは、mousedownイベント(onmousedown属性)とmouseupイベント(onmouseup属性)が同じスクリーン座標で発生した時に発生します。よって、このイベントの発生はそれらのイベントより後になります。

clickイベントはバブルし、キャンセルできます。

[ondblclick]
Published : 2006-03-26T09:00:00+09:00
Last Modified : 2007-02-19T09:00:00+09:00
Table of Contents : 属性目次
Index : 属性索引
Verified with : Valid XHTML 1.1
Copyright © 2006 - 2007  E+X.