How To Get The URL Of A Xmlhttp Request (AJAX) October 04, 2022 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) { return function(method,url,async) { console.log('the outgoing url is ',url); open.apply(this,arguments); }; })(XMLHttpRequest.prototype.open); Copy Here 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)"