Intercepting HTTP event using JQuery
<p>I have this JQuery code working however I need to know whether how to actually get the URL executed from the tags selected. </p>

<pre><code>$("link, script, style, a, img").each(function(){
                $(this).load(function(){
                    // get the URL and log it
                    console.log("Intercepted HTTP Event");
                });
});
</code></pre>

<p>First thing I need to do it to get the actual URL during the load. </p>

<p>Next thing I may need to do is to actually catch before the load event happens, I mean before an image or link is loaded for example. Also, I need to modify the URL of the event that will be executed, for example, <code>img</code> tag has <code>src="/somewhere/image.png"</code> I mean, this will cause a <code>GET /somewhere/image.png</code> I may need to change it to <code>GET/otherplace/image.png</code> </p>

<p>Any ideas how to achive any of these?</p>
