<!DOCTYPE html>
<html><head><title>iframe</title></head>
  <body> 
    <p>var testvar = "testiframe"</p>
    <script>
      document.domain='example.org';
      var testvar = "testiframe";
    </script>
  </body>
</html>