var client =newXMLHttpRequest()
client.open("GET","http://www.example.org/example.txt")
client.ontimeout =function(e){
console.error("Timeout!!")
}
client.send()
Inheritance
The timeout event implements the ProgressEvent interface, which inherits from Event — it has available the properties and methods defined on this interface.