<!doctype html>
<html>
  <head>
    <title>Origin for dropped files</title>
    <style type="text/css">
div { height: 100px; width: 100px; background: orange; }
iframe { width: 500px; height: 120px; border: none; }
    </style>
    <script type="text/javascript" src="../resources/crossorigin.sub.js"></script>
    <script type="text/javascript">
window.onload = function () {
  var origin = 'http://'+httpHostMain;
  if( location.href.indexOf(origin+'/') ) {
    document.body.innerHTML = 'This must be tested on '+origin+'/';
    return;
  }
  document.getElementsByTagName('span')[0].textContent = 'null (string)';
  var iframe = document.createElement('iframe');
  iframe.src = origin+location.pathname.replace(/[^\/]*$/,'HELPER-showorigin.html');
  document.body.insertBefore(iframe,document.getElementsByTagName('div')[0]);
};
    </script>
  </head>
  <body>

    <noscript><p>Enable JavaScript and reload</p></noscript>
    <p>Drag a small file from your computer onto the blue square and release it. If a prompt appears, accept it. The blue square should be replaced with the text:<br>
    <span></span></p>

  </body>
</html>
