I'm looking a way to get XMLHttpRequest.responseURL
in IE.
My code (myreq.responseURL
) works correctly using Chrome, Firefox, and Safari.
Is there a way to do the same (also using another function) in IE?
Any help is really appreciated.
responseURL property returns the serialized URL of the response or the empty string if the URL is null . If the URL is returned, any URL fragment present in the URL will be stripped away. The value of responseURL will be the final URL obtained after any redirects.
XMLHttpRequest (XHR) objects are used to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing.
XMLHttpRequest.responseURL
is not supported in IE as of yet.
The closest alternative I could think of is XMLHttpRequest.getResponseHeader()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With