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

timeout

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

브라우저 호환성

api.XMLHttpRequest.timeout_event

api.XMLHttpRequestUpload.timeout_event

See also