It is necessary to check the presence of a link on the page, I searched for a long time, everywhere a solution only by the id of the element. It is necessary that when deleting or changing any link of the form <a href="http://site.ru">Do not delete</a> alert would pop up.
Logic type:
var link = '<a href="http://site.ru">Do not delete</a>'; if (link not found) { alert('Error'); }