Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
HTML and CSS
Methods
 abort Method

  Switch on low bandwidth view
abort Method

Cancels the current HTTP request.

Syntax

XMLHttpRequest.abort()

Return Value

No return value.

Remarks

abort was introduced in Windows Internet Explorer 7.

The abort method interrupts an asynchronous operation in progress. (Pass true to the varAsync parameter of open to create an asynchronous request.)

Calling abort resets the object; the onreadystatechange event handler is removed, and readyState is changed to 0 (uninitialized).

Standards Information

This method is defined in The XMLHttpRequest Object (W3C Working Draft) World Wide Web link.

Applies To

XMLHttpRequest

See Also

send
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
How do I abort a request in IE6 ?      boris.reitman   |   Edit   |   Show History
If this was introduced in IE7, then what is the solution for IE6 ?

Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker