title: Framing a webcam page - no way to modify it's source
body: <p>I have a panasonic webcam which contains an internal web server. It displays a page the shows the webcam video stream as well as a bunch of controls like pan and tilt. I am framing the page presented by the webcam in an iframe so I can surround it with additional content. Unfortunately the webcam's html also uses frames and every time a control is pressed (like a pan button) the page executes javascript that looks something like:</p>
  
  <p>top.location.href = "CgiStart?page=Single&amp;Resolution=320x240 ...</p>
  
  <p>This breaks out of the iframe I was using to enclose the webcam page and thus I lose the additional content I had surrounding it.</p>
  
  <p>I cannot modify the code on the webcam. I can stop the webcam from "busting out" of my container frame, but that's not what I want. I need it to execute the cgi script and reload the page, but I want it to happen inside the iframe. In essence I want "top" to refer to the top of the iframe, not the iframe's container. I've tried a couple of things with no luck. I'm hoping there is an obvious solution and that I'm just not seeing it.</p>