/html/hash2parent.html

http://xssinterface.googlecode.com/ · HTML · 15 lines · 13 code · 2 blank · 0 comment · 0 complexity · 2b314e29eeafd662c95ccfe981867894 MD5 · raw file

  1. <html>
  2. <head>
  3. <title>Hash 2 parent</title>
  4. <script type="text/javascript">
  5. if(window.location.hash.indexOf("#")==0){
  6. var id = window.location.hash.substring(1);
  7. if(parent[id] && parent[id].XSSInterfaceCallback)
  8. parent[id].XSSInterfaceCallback(window);
  9. }
  10. </script>
  11. </head>
  12. <body></body>
  13. </html>