I'm using Javascript and i want check if a page/url (of another domain exist)
I tried this but it doesn't work
$.ajax({
type: 'HEAD',
url: 'http://google.com',
success: function() {
alert('1');
},
error: function() {
alert('0');
}
});
it show me this error
XMLHttpRequest cannot load http://google.com/. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localads-4u.com' is therefore not allowed access.
Note : the tested script is online