simple code to set the password of the web by javascript
below is the code:
<script type=”text/javascript”>
loopy()
function loopy() {
var sWord =””
while (sWord != “jincan”) {//set the password:jincan
sWord = prompt(“Enter the password for VIP”)
}
alert(“Welcome!”)
}
</script>