title: Check if a website is making X http request with javascript
body: <p>I've been searching for a while but all I could find was examples on how to actually make those requests... </p>
  
  <p>What I'm trying to do is to check if a website is making an http request after I click a button to X site</p>
  
  <p>Ex. <a href="http://test.s3.amazonaws.com/test/1.txt" rel="nofollow">http://test.s3.amazonaws.com/test/1.txt</a></p>
  
  <p>I'm guessing there a way to get all the outgoing requests and then filter the list but I can't even get the requests</p>
  
  <p>What I've done so far is just inserting the eventlistener to check that X button has been clicked and then is when I'd like to check for those requests.</p>
  
  <pre><code>&lt;script language="javascript"&gt;
  document.getElementById("button").addEventListener('click', buttonClicked, true);
  
  function buttonClicked(){
      --&gt;Check requests made after button is clicked.&lt;--
  }
  &lt;/script&gt;
  </code></pre>