lang/js

window.performance.navigation.type vs PerformanceNavigationTiming.type

C/H 2022. 7. 7. 13:08
PerformanceNavigation.type Read only Deprecated
An unsigned short which indicates how the navigation to this page was done. Possible values are:

TYPE_NAVIGATE (0)
The page was accessed by following a link, a bookmark, a form submission, or a script, or by typing the URL in the address bar.

TYPE_RELOAD (1)
The page was accessed by clicking the Reload button or via the Location.reload() method.

TYPE_BACK_FORWARD (2)
The page was accessed by navigating into the history.

TYPE_RESERVED (255)
Any other way.
PerformanceNavigationTiming.type
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The type read-only property returns the type of navigation.

Value
A string containing one of the following values:

"navigate"
Navigation started by clicking a link, entering the URL in the browser's address bar, form submission, or initializing through a script operation other than reload and back_forward as listed below.

"reload"
Navigation is through the browser's reload operation or location.reload().

"back_forward"
Navigation is through the browser's history traversal operation.

"prerender"
Navigation is initiated by a prerender hint.
PerformanceNavigationTiming.type
실험은 : 이것은이다 실험 기술
프로덕션에서 사용하기 전에 브라우저 호환성 표를 주의 깊게 확인하십시오 .

type 읽기 전용 속성은 탐색 유형을 반환합니다 .

Value
다음 값 중 하나를 포함 하는 string :

"navigate"
탐색은 링크를 클릭하고 브라우저의 주소 표시 줄에 URL을 입력하거나 양식을 제출하거나 아래에 표시된 것처럼 reload 및 back_forward 이외의 스크립트 작업을 통해 초기화하여 시작되었습니다.

"reload"
탐색은 브라우저의 다시로드 작업 또는 location.reload() 집니다.

"back_forward"
탐색은 브라우저의 히스토리 탐색 조작을 통해 이루어집니다.

"prerender"
탐색은 사전 렌더링 힌트에 의해 시작됩니다 .
반응형

'lang > js' 카테고리의 다른 글

Chat Of vega-lite  (0) 2021.10.21
Javascript Promise  (0) 2021.01.04
Element.scrollIntoView()  (0) 2020.11.06
JavascriptHTMLDialogElement.returnValue  (0) 2019.12.19
Javascript EventTarget()  (0) 2019.12.18