Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
По сути нужен способ проверки битая ссылка, которая ведёт на облако mail.ru или нет.Чуть подробнее)
var request;
if(window.XMLHttpRequest)
request = new XMLHttpRequest();
else
request = new ActiveXObject("Microsoft.XMLHTTP");
request.open('GET', 'http://www.mozilla.org', false);
request.send(); // there will be a 'pause' here until the response to come.
// the object request will be actually modified
if (request.status === 404) {
alert("The page you are trying to reach is not available.");
}
$.get("urlToCheck.com").done(function () {
alert("success");
}).fail(function () {
alert("failed.");
});