Skip to content
Permalink
Browse files

[acgiow] (0) Add pageshow and pagehide events.

Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=7896

git-svn-id: http://svn.whatwg.org/webapps@4231 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 21, 2009
1 parent f12f4bd commit f2875e08274635c7614672d2709d6312389601d0
Showing with 138 additions and 2 deletions.
  1. +39 −1 complete.html
  2. +47 −1 index
  3. +52 −0 source
<dd><code title=handler-window-onmessage><a href=#handler-window-onmessage>onmessage</a></code></dd>
<dd><code title=handler-window-onoffline><a href=#handler-window-onoffline>onoffline</a></code></dd>
<dd><code title=handler-window-ononline><a href=#handler-window-ononline>ononline</a></code></dd>
<dd><code title=handler-window-onpagehide><a href=#handler-window-onpagehide>onpagehide</a></code></dd>
<dd><code title=handler-window-onpageshow><a href=#handler-window-onpageshow>onpageshow</a></code></dd>
<dd><code title=handler-window-onpopstate><a href=#handler-window-onpopstate>onpopstate</a></code></dd>
<dd><code title=handler-window-onredo><a href=#handler-window-onredo>onredo</a></code></dd>
<dd><code title=handler-window-onresize><a href=#handler-window-onresize>onresize</a></code></dd>
attribute <a href=#function>Function</a> <a href=#handler-window-onoffline title=handler-window-onoffline>onoffline</a>;
attribute <a href=#function>Function</a> <a href=#handler-window-ononline title=handler-window-ononline>ononline</a>;
attribute <a href=#function>Function</a> <a href=#handler-window-onpopstate title=handler-window-onpopstate>onpopstate</a>;
attribute <a href=#function>Function</a> <a href=#handler-window-onpagehide title=handler-window-onpagehide>onpagehide</a>;
attribute <a href=#function>Function</a> <a href=#handler-window-onpageshow title=handler-window-onpageshow>onpageshow</a>;
attribute <a href=#function>Function</a> <a href=#handler-window-onredo title=handler-window-onredo>onredo</a>;
attribute <a href=#function>Function</a> <a href=#handler-window-onresize title=handler-window-onresize>onresize</a>;
attribute <a href=#function>Function</a> <a href=#handler-window-onstorage title=handler-window-onstorage>onstorage</a>;
attribute <a href=#function>Function</a> <a href=#handler-onpause title=handler-onpause>onpause</a>;
attribute <a href=#function>Function</a> <a href=#handler-onplay title=handler-onplay>onplay</a>;
attribute <a href=#function>Function</a> <a href=#handler-onplaying title=handler-onplaying>onplaying</a>;
attribute <a href=#function>Function</a> <a href=#handler-window-onpagehide title=handler-window-onpagehide>onpagehide</a>;
attribute <a href=#function>Function</a> <a href=#handler-window-onpageshow title=handler-window-onpageshow>onpageshow</a>;
attribute <a href=#function>Function</a> <a href=#handler-window-onpopstate title=handler-window-onpopstate>onpopstate</a>;
attribute <a href=#function>Function</a> <a href=#handler-onprogress title=handler-onprogress>onprogress</a>;
attribute <a href=#function>Function</a> <a href=#handler-onratechange title=handler-onratechange>onratechange</a>;
<tr><td><dfn id=handler-window-onmessage title=handler-window-onmessage><code>onmessage</code></dfn> <td> <code title=event-message><a href=#event-message>message</a></code> <!-- new for postMessage -->
<tr><td><dfn id=handler-window-onoffline title=handler-window-onoffline><code>onoffline</code></dfn> <td> <code title=event-offline><a href=#event-offline>offline</a></code> <!-- new -->
<tr><td><dfn id=handler-window-ononline title=handler-window-ononline><code>ononline</code></dfn> <td> <code title=event-online><a href=#event-online>online</a></code> <!-- new -->
<tr><td><dfn id=handler-window-onpagehide title=handler-window-onpagehide><code>onpagehide</code></dfn> <td> <code title=event-pagehide>pagehide</code> <!-- new -->
<tr><td><dfn id=handler-window-onpageshow title=handler-window-onpageshow><code>onpageshow</code></dfn> <td> <code title=event-pageshow>pageshow</code> <!-- new -->
<tr><td><dfn id=handler-window-onpopstate title=handler-window-onpopstate><code>onpopstate</code></dfn> <td> <code title=event-popstate><a href=#event-popstate>popstate</a></code> <!-- new -->
<tr><td><dfn id=handler-window-onredo title=handler-window-onredo><code>onredo</code></dfn> <td> <code title=event-redo><a href=#event-redo>redo</a></code> <!-- new -->
<tr><td><dfn id=handler-window-onresize title=handler-window-onresize><code>onresize</code></dfn> <td> <code title=event-resize>resize</code> <!-- widely used --> <!-- [CSSOM] -->
<a href=#resulting-autocompletion-state>resulting autocompletion state</a> is <i title="">off</i>, invoke the <a href=#concept-form-reset-control title=concept-form-reset-control>reset algorithm</a> of each
of those elements.</li>

<li><p>If the the <a href=#current-document-readiness>current document readiness</a> of the
<i>specified entry</i>'s <code>Document</code> is "complete",
<a href=#queue-a-task>queue a task</a> to <a href=#fire-a-simple-event>fire a simple event</a>
named <code title=event-pageshow>pageshow</code> at that
<code>Document</code>'s <code><a href=#window>Window</a></code> object.</li>

</ol></li>

<li><p>Set <a href="#the-document's-current-address">the document's current address</a> to the URL
whether the <code>Document</code> object is going to be
re-used. (This is set by the <code title=dom-document-open><a href=#dom-document-open>document.open()</a></code> method.)</p>

<ol><li><p><a href=#fire-a-simple-event>Fire a simple event</a> named <code title=event-unload>unload</code> at the <code>Document</code>'s
<ol><li><p><a href=#fire-a-simple-event>Fire a simple event</a> named <code title=event-pagehide>pagehide</code> at the
<code>Document</code>'s <code><a href=#window>Window</a></code> object.</li>

<li><p><a href=#fire-a-simple-event>Fire a simple event</a> named <code title=event-unload>unload</code> at the <code>Document</code>'s
<code><a href=#window>Window</a></code> object.</li>

<li><p>If any event listeners were triggered by the previous step,
<code>Document</code> object (and the <code title=dom-event-currentTarget>currentTarget</code> set to the
<code><a href=#window>Window</a></code> object).</li>

<li><p>If the <code>Document</code> is in a <a href=#browsing-context>browsing
context</a>, then <a href=#queue-a-task>queue a task</a> to <a href=#fire-a-simple-event>fire a
simple event</a> named <code title=event-pageshow>pageshow</code> at the
<code>Document</code>'s <code><a href=#window>Window</a></code> object.</li>

<li><p>If the <code>Document</code> has a <a href=#pending-state-object>pending state
object</a>, then <a href=#queue-a-task>queue a task</a> to fire a <code title=event-popstate><a href=#event-popstate>popstate</a></code> event in no namespace on the
<code>Document</code>'s <code><a href=#window>Window</a></code> object using the
attribute <a href=#function>Function</a> <a href=#handler-window-onmessage title=handler-window-onmessage>onmessage</a>;
attribute <a href=#function>Function</a> <a href=#handler-window-onoffline title=handler-window-onoffline>onoffline</a>;
attribute <a href=#function>Function</a> <a href=#handler-window-ononline title=handler-window-ononline>ononline</a>;
attribute <a href=#function>Function</a> <a href=#handler-window-onpagehide title=handler-window-onpagehide>onpagehide</a>;
attribute <a href=#function>Function</a> <a href=#handler-window-onpageshow title=handler-window-onpageshow>onpageshow</a>;
attribute <a href=#function>Function</a> <a href=#handler-window-onpopstate title=handler-window-onpopstate>onpopstate</a>;
attribute <a href=#function>Function</a> <a href=#handler-window-onredo title=handler-window-onredo>onredo</a>;
attribute <a href=#function>Function</a> <a href=#handler-window-onresize title=handler-window-onresize>onresize</a>;
<li><code title=handler-window-onmessage><a href=#handler-window-onmessage>onmessage</a></code></li>
<li><code title=handler-window-onoffline><a href=#handler-window-onoffline>onoffline</a></code></li>
<li><code title=handler-window-ononline><a href=#handler-window-ononline>ononline</a></code></li>
<li><code title=handler-window-onpagehide><a href=#handler-window-onpagehide>onpagehide</a></code></li>
<li><code title=handler-window-onpagehide><a href=#handler-window-onpagehide>onpagehide</a></code></li>
<li><code title=handler-window-onpopstate><a href=#handler-window-onpopstate>onpopstate</a></code></li>
<li><code title=handler-window-onredo><a href=#handler-window-onredo>onredo</a></code></li>
<li><code title=handler-window-onresize><a href=#handler-window-onresize>onresize</a></code></li>
<code title=handler-window-onmessage><a href=#handler-window-onmessage>onmessage</a></code>;
<code title=handler-window-onoffline><a href=#handler-window-onoffline>onoffline</a></code>;
<code title=handler-window-ononline><a href=#handler-window-ononline>ononline</a></code>;
<code title=handler-window-onpagehide><a href=#handler-window-onpagehide>onpagehide</a></code>;
<code title=handler-window-onpageshow><a href=#handler-window-onpageshow>onpageshow</a></code>;
<code title=handler-window-onpopstate><a href=#handler-window-onpopstate>onpopstate</a></code>;
<code title=handler-window-onredo><a href=#handler-window-onredo>onredo</a></code>;
<code title=handler-window-onresize><a href=#handler-window-onresize>onresize</a></code>;
<td> <code title=event-media-playing><a href=#event-media-playing>playing</a></code> event handler
<td> <a href=#event-handler-content-attributes title="event handler content attributes">Event handler content attribute</a>

<tr><th> <code title="">onpagehide</code>
<td> <code title=handler-window-onpagehide><a href=#handler-window-onpagehide>body</a></code>
<td> <code title=event-pagehide>pagehide</code> event handler for <code><a href=#window>Window</a></code> object
<td> <a href=#event-handler-content-attributes title="event handler content attributes">Event handler content attribute</a>

<tr><th> <code title="">onpageshow</code>
<td> <code title=handler-window-onpageshow><a href=#handler-window-onpageshow>body</a></code>
<td> <code title=event-pageshow>pageshow</code> event handler for <code><a href=#window>Window</a></code> object
<td> <a href=#event-handler-content-attributes title="event handler content attributes">Event handler content attribute</a>

<tr><th> <code title="">onpopstate</code>
<td> <code title=handler-window-onpopstate><a href=#handler-window-onpopstate>body</a></code>
<td> <code title=event-popstate><a href=#event-popstate>popstate</a></code> event handler for <code><a href=#window>Window</a></code> object

0 comments on commit f2875e0

Please sign in to comment.
You can’t perform that action at this time.