open

  • Revision slug: DOM/Mozilla_event_reference/open_serversentevents
  • Revision title: open
  • Revision id: 366603
  • Created:
  • Creator: ethertank
  • Is current revision? No
  • Comment Moved From Mozilla_event_reference/open_serversentevents to DOM/Mozilla_event_reference/open_serversentevents

Revision Content

The open handler is executed when a connection with an event source is opened.

General info

Specification
Server Sent Events
Interface
Event
Bubbles
No
Cancelable
No
Target
EventSource
Default Action
None

Properties

{{OpenEventProperties()}}{{CloseEventProperties()}}

Related Events

{{SSERelatedEvents()}}

See also

Revision Source

<p>The <code>open</code> handler is executed when a connection with an event source is opened.</p>
<h2 id="General_info">General info</h2>
<dl>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Specification</dt>
  <dd style="margin: 0 0 0 120px;">
    <a class="external" href="http://dev.w3.org/html5/eventsource/">Server Sent Events</a></dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Interface</dt>
  <dd style="margin: 0 0 0 120px;">
    Event</dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Bubbles</dt>
  <dd style="margin: 0 0 0 120px;">
    No</dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Cancelable</dt>
  <dd style="margin: 0 0 0 120px;">
    No</dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Target</dt>
  <dd style="margin: 0 0 0 120px;">
    <a href="/en-US/docs/Server-sent_events/EventSource" title="/en-US/docs/Server-sent_events/EventSource">EventSource</a></dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Default Action</dt>
  <dd style="margin: 0 0 0 120px;">
    None</dd>
</dl>
<h2 id="Properties">Properties</h2>
<p>{{OpenEventProperties()}}{{CloseEventProperties()}}</p>
<h2>Related Events</h2>
<p>{{SSERelatedEvents()}}</p>
<h2 id="See_also">See also</h2>
<ul>
  <li><a href="https://developer.mozilla.org/en/Server-sent_events/Using_server-sent_events" title="en/Server-sent events/Using server-sent events">Using server-sent events</a></li>
</ul>
Revert to this revision