<a href="http://yandex.ru" onclick="return check();">confidential</a> <script> function check() { if (prompt('Vvedite paroli') == '12345') return true; else return false; } </script>