timeout

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

timeout 이벤트는 미리 설정한 시간이 만료되어 진행이 종료되면 시작합니다.

Bubbles No
Cancelable No
Target objects XMLHttpRequest
Interface ProgressEvent

Examples

js
var client = new XMLHttpRequest();
client.open("GET", "http://www.example.org/example.txt");
client.ontimeout = function (e) {
  console.error("Timeout!!");
};
client.send();

Inheritance

timeout 이벤트는 Event에서 상속받은 ProgressEvent 인터페이스를 구현합니다. 이 인터페이스에 선언된 속성(property)과 메서드를 사용할 수 있습니다.

명세서

Specification
XMLHttpRequest
# event-xhr-timeout
XMLHttpRequest
# handler-xhr-ontimeout

브라우저 호환성

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
timeout event

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

See also