aboutsummaryrefslogtreecommitdiff
path: root/files/ja/conflicting/web/api/document/createevent/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/ja/conflicting/web/api/document/createevent/index.html')
-rw-r--r--files/ja/conflicting/web/api/document/createevent/index.html32
1 files changed, 32 insertions, 0 deletions
diff --git a/files/ja/conflicting/web/api/document/createevent/index.html b/files/ja/conflicting/web/api/document/createevent/index.html
new file mode 100644
index 0000000000..d9dc6aef3f
--- /dev/null
+++ b/files/ja/conflicting/web/api/document/createevent/index.html
@@ -0,0 +1,32 @@
+---
+title: Event.createEvent()
+slug: Web/API/Event/createEvent
+translation_of: Web/API/Document/createEvent
+translation_of_original: Web/API/Event/createEvent
+---
+<p>{{APIRef("DOM")}}</p>
+
+<p>新規イベントを生成します。生成されたイベントは初期化処理が必須です。</p>
+
+<h3 id="構文">構文</h3>
+
+<pre><code>document.createEvent(type) </code></pre>
+
+<dl>
+ <dt><code>type</code></dt>
+ <dd>生成するイベントタイプ名</dd>
+</dl>
+
+<p>このメソッドは指定されたイベントタイプの新規DOM {{ domxref("Event") }} オブジェクトを返り値として返します。</p>
+
+<p>オブジェクトには初期化処理が必須です。</p>
+
+<h3 id="例">例</h3>
+
+<pre>var newEvent = document.createEvent("UIEvents");</pre>
+
+<h3 id="仕様書">仕様書</h3>
+
+<ul>
+ <li><a class="external" href="http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-document" title="http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-document">DOM Level 2 Events</a></li>
+</ul>