I am trying this script from html, but can tget a result, what is a problem?
<script>
function httpGet()
{
var httpClient = util.newHttpClient();
var result = httpClient.get("www.google.com");
document.getElementById("demo").innerHTML=result;
return results;
}
</script>
<button type="button" onclick="httpGet()">Display site</button>
For security reasons, you cannot use AJAX to read content from a different website.