I need a javascript code that will check if the embed code provided on my website was not changed when used on someone elses website. Embed uses iframe but javascript from iframe is supposed to be able to check the document iframe is in. This is a sample of embed code: <div style="background:#FFFFFF; font:Arial; color:#000000; font-size:12px; width:468px"><b>ANY VALUE</b> // <a href="http://www.domain.com/" target="_blank" style="color:#0000FF;">TEXT</a> on <a href="http://www.domain.com/" target="_blank" style="color:#0000FF;">http://www.domain.com</a><iframe name="stream" src ="http://www.domain.com/embeded.php?Id=ANY VALUE" width="468px" height="352px" frameborder="0" style="padding:0px; margin:0px;" scrolling="no" ></iframe></div> in case above was changes script should open other page in iframe