[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ko/docs/Web/API/History/go [Back]  [Original]

History.go() - Web API | MDN

This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

History.go()

Baseline
Widely available

This feature is well established and works across many devices and browser versions. Its been available across browsers since 2015 7.

History.go() history . history .

asynchronous() . , popstate event listener .

In this article

js
history.go([delta]);

Parameters

delta Optional

history . , . history.go(2) 2 , history.go(-2) 2 . , delta 0 , location.reload() . ()

(back() ):

js
history.go(-1);

forward() :

js
history.go(1);

:

js
history.go(2);

:

js
history.go(-2);

, :

js
history.go();
history.go(0);

Specification
HTML
# dom-history-go-dev

See also


Web Proxy Viewer  |  New URL  |  Original Page