title: File.Exists script that recognizes file inside folder
body: <p>I made a structure in script that recognizes the file a domain by the reference that recognizes the domain inside the folder and follows the correct extrusion but does not display anything.</p>
  <p>Do you know how I can solve it?</p>
  <pre><code>&lt;script type=&quot;text/javascript&quot;&gt;
      
  var urlObj = new URL(document.referrer)
   
  if (File.Exists(&quot;/reference/&quot;(document.write(urlObj.hostname))&quot;.txt&quot;))
  {
          // Yes display on page
      print (&quot;yes exist&quot;)
      
  } else {
  
          // Do not display on page
      print (&quot;not exist&quot;)
      
  }
      
  &lt;/script&gt; 
  
  </code></pre>