JavaScript: The Definitive Guide
25.321. XMLHttpRequest.abort( ): cancel an HTTP request
25.321.1. Synopsis
void abort( )
25.321.2. Description
This method resets the XMLHttpRequest object to a readyState of 0 and aborts any pending network activity. You might call this method, for example, if a request has taken too long, and the response is no longer necessary. |
Категории