Why in the video tutorial from mail.ru it is written $('a').click(function() {alert('lalala'); return false;}); and when you click on the link, an alert pops up and, after clicking on it, it does not skip the user; when you click on the link again, an alert pops up.
And in my code, <div class="header__list_raw" onclick="userIsntLogged ();"></div>
js
function userIsntLogged () { alert('Для начала войдите на сайт'); return false; } When you click on the link, it opens the alert after clicking on it, it goes to the link, and when you click on the link again, the alert link does not pop up until you refresh the page.
onclick="return userIsntLogged()". But do not need to write like that. - Alexey Tendiv... - MedvedevDev