timeout
Baseline
Widely available
This feature is well established and works across many devices and browser versions. Itâs been available across browsers since 2015ë 7ì.
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 > |