<script>
function password(){
alertify.prompt("INGRESE LA CLASE", function (e, str) {
if (str=='123'){
// here! how to get into the another page, like "index.html"
} else {
alertify.log('ERROR! INGRESE LA CLAVE');
}
});
}
</script>
<a href="index.html" onClick="password(); return false;">AQUI</a>
它可以使用 Alertify,但是在 OK 之后,需要一些代码来打开页面索引。