Compare Revisions

Window.history

Revision 61567:

Revision 61567 by jswisher on

Revision 61568:

Revision 61568 by mjball on

Title:
window.history
window.history
Slug:
DOM/window.history
DOM/window.history
Tags:
DOM, Gecko, DOM_0, "Gecko DOM Reference"
DOM, Gecko, DOM_0, "Gecko DOM Reference"
Content:

Revision 61567
Revision 61568
n78            Loads a page from the session history, identified by n78            Loads a page from the session history, identified by 
>its relative location to the current page, for example <code>-1</>its relative location to the current page, for example <code>-1</
>code> for the previous page or <code>1</code> for the next page. >code> for the previous page or <code>1</code> for the next page. 
>When <code><em>integerDelta</em></code> is out of bounds (e.g. -1>When <code><em>integerDelta</em></code> is out of bounds (e.g. -1
> when there are no previously visited pages in the session histor> when there are no previously visited pages in the session histor
>y), the method doesn't do anything and doesn't raise an exception>y), the method doesn't do anything and doesn't raise an exception
>. Calling <code>go()</code> without parameters or with a non-inte>. Calling <code>go()</code> without parameters or with a non-inte
>ger argument has no effect (unlike Internet Explorer, <a class=" >ger argument has no effect (unlike Internet Explorer, <a class="e
>external" href="http://msdn.microsoft.com/en-us/library/ms536443(>xternal" href="http://msdn.microsoft.com/en-us/library/ms536443(V
>VS.85).aspx" title="http://msdn.microsoft.com/en-us/library/ms536>S.85).aspx" title="http://msdn.microsoft.com/en-us/library/ms5364
>443(VS.85).aspx">which supports string URLs as the argument</a>).>43(VS.85).aspx">which supports string URLs as the argument</a>).
79          </td>
80          <td>79          </td>
81            No return value
82          </td>80          <td>
83        </tr>81            No return value
84        <tr>
85          <td>82          </td>
83        </tr>
84        <tr>
85          <td>
86            <code>history.pushState(<em>data</em>, <em>title</em>86            <code id="pushState">history.pushState(<em>data</em>,
> [, <em>url</em>])</code> {{ gecko_minversion_inline("2.0") }}> <em>title</em> [, <em>url</em>])</code> {{ gecko_minversion_inli
 >ne("2.0") }}
n102            <code>history.replaceState(<em>data</em>, <em>title</n102            <code id="replaceState">history.replaceState(<em>data
>em> [, <em>url</em>])</code> {{ gecko_minversion_inline("2.0") }}></em>, <em>title</em> [, <em>url</em>])</code> {{ gecko_minversio
 >n_inline("2.0") }}
t226        <a class=" external" href="http://whatwg.org/html#the-hist226        <a class="external" href="http://whatwg.org/html#the-hist
>tory-interface">HTML5 History interface</a>>ory-interface">HTML5 History interface</a>

Back to History