Hey guys and gals,
so firstly I need to password protect a page using either Javascript or HTML, I have found a Javascript password protection script, but I want it to work on an iPod touch, and I want it to make it a passcode not a password, and it would show the numeric pad on the iPod touch and not the alpha-numeric qwerty layout, like the numeric pad you get when you password your iPod or iPhone,
I tried setting the code to show only numbers from 0-9 but still doesn't show the numeric pad on the iPod touch.
this is the exact same as the script i am using, but this is an example one, can someone please edit the code given so you can solve my problem.
Thanks
so firstly I need to password protect a page using either Javascript or HTML, I have found a Javascript password protection script, but I want it to work on an iPod touch, and I want it to make it a passcode not a password, and it would show the numeric pad on the iPod touch and not the alpha-numeric qwerty layout, like the numeric pad you get when you password your iPod or iPhone,
I tried setting the code to show only numbers from 0-9 but still doesn't show the numeric pad on the iPod touch.
HTML:
<script language="Javascript">
<!--
var password = "test"
var x = prompt("Enter in the password "," ")
if (x.toLowerCase() == password) {
alert("Come right in \n \n You've entered in the right password")
location = "index.htm"
}
else {
location = "bad.htm"
}
//-->
</script>
this is the exact same as the script i am using, but this is an example one, can someone please edit the code given so you can solve my problem.
Thanks