title: Access to restricted URI denied. Firebug
body: <p>I have 1 HTML Page and 1 js file . I cannot run script in  Firebug on Chrome <br/>
  it shows following Error :</p>
  
  <blockquote>
    <p>Access to restricted URI denied.</p>
  </blockquote>
  
  <p>Code is as per tutorial <br/></p>
  
  <p>HTML Page  </p>
  
  <pre><code>&lt;!DOCTYPE html &gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8" /&gt;
      &lt;title&gt;jQuery Example &lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;input type="button" value="Hide" id="toggle_messege" /&gt;
      &lt;p id="messege"&gt;
          You see this paragraph
      &lt;/p&gt;
      &lt;script type="text/javascript" src="~/js/toggle.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="~/js/jquery-1.7.1.min.js"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>js file</p>
  
  <pre><code>$('#toggle_messege').click(function () {
      var value = $('#toggle_messege').attr('value');
      $('messege').toggle('fast');
      if (value == 'Hide') {
          $('#toggle_messege').attr('value', 'Show');
      }
      else if (value == 'Show') {
  
          $('#toggle_messege').attr('value', 'Hide');
      }
  });
  </code></pre>
  
  <p>Similar post :
  <a href="https://stackoverflow.com/questions/6653825/error-access-to-restricted-uri-denied">Error: &quot;Access to restricted URI denied&quot;</a></p>
  
  <p><a href="http://jquery-howto.blogspot.in/2008/12/access-to-restricted-uri-denied-code.html" rel="nofollow noreferrer">http://jquery-howto.blogspot.in/2008/12/access-to-restricted-uri-denied-code.html</a></p>
  
  <p>They suggest it is same domain policy issue and solution is to access file from webserver(localhost)</p>
  
  <p>my url is </p>
  
  <pre><code> http://localhost/WebApplication2/js/
  </code></pre>
  
  <p>But couldnot solve the issue ..
  plz suggest if something missing</p>