How To Get The Url Of A Xmlhttp Request (ajax) February 17, 2024 Post a Comment On w3schools.com(url) there is an example of how to do an AJAX call with plain Javascript. If you look at the example you will see the call is triggered by a button: Solution 1: I'm not sure how much access you have to the code but you can over-ride XMLHttpRequest.open and hook the url there.XMLHttpRequest.prototype.open = (function(open) { returnfunction(method,url,async) { console.log('the outgoing url is ',url); open.apply(this,arguments); }; })(XMLHttpRequest.prototype.open); CopyHere is a FIDDLE. Share Post a Comment for "How To Get The Url Of A Xmlhttp Request (ajax)"
Post a Comment for "How To Get The Url Of A Xmlhttp Request (ajax)"