Page Exist Function
by Pratik Bhoir
JavaScript
function existUrl(url){
$.ajax({
url: url,
success: function() {
// page exists
console.log("File Exists.");
return true;
},
error: function() {
// page does not exist
console.log("File Not Found.");
return false;
}
});
}