title: Check if embedded website URL has changed
body: <p>I'm making a website that has another website embedded in an object (a small box in my page). I'm looking for as solution that will allow me to hide this object when the webpage in the embedded object changes (i.e. the user clicks a link on that website)</p>
  
  <p>The code I have below will only shows will create the embedded object but everything is static (i.e. the "src" will not change as the URL changes in the object).</p>
  
  <pre><code>&lt;object data=http://www.website.com  width="600" height="400"&gt; &lt;embed id="test" src=http://www.website.com  width="600" height="400"&gt; &lt;/embed&gt; Error: Embedded data could not be displayed. &lt;/object&gt;
  </code></pre>
  
  <p>Is there a way to look at the current URL of that object?
  I've been thinking about using something similar to location.href but I'm not sure how to implement this.</p>
  
  <p>Thanks</p>