title: Get data from other page with js?
body: <p>I want to get data from other page with js or jquery or ajax but not php. I just found a sample on stack overflow. (<a href="https://stackoverflow.com/questions/14537838/getting-data-from-other-sites-using-javascript">here is the link</a>) But when I write these codes on my index.html file, it doesn't work. I don't understand reason. Here is my codes</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;title&gt;Document&lt;/title&gt;
      &lt;script src="//code.jquery.com/jquery-1.11.3.min.js"&gt;&lt;/script&gt;
      &lt;script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"&gt;&lt;/script&gt;
      &lt;script type=”text/javascript”&gt;
         var url='http://query.yahooapis.com/v1/public/yql?q=select * from html where url=\'https://stackoverflow.com/\' and xpath=\'//div[@id="question-mini-list"]//h3//a\'&amp;format=json&amp;callback=?';
  
  
          $.getJSON( url, function(data){
              $.each(data.query.results.a, function(){       
                  $('body').append('&lt;div&gt;&lt;a href="http://stackoverflow.com'+this.href +'"&gt;'+this.content+'&lt;/a&gt;&lt;/div&gt;');    
               });
          });
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;  
      &lt;div&gt;&lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>