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