|
||||||||||||
| Web Services Home |
|
JavaScript Password Protector: Insert This Small Piece of code at the very top of your HTML document. Your password will be set to whatever "yourpassword" is now. Once the correct password is entered, the rest of the page will be displayed.
< script language="javascript">var wrong="http://course1.winona.edu/noaccess.htm"; var password="yourpassword"; var name = prompt("Password","Please Enter Authorization"); if (name != password) {location.href=wrong} < /script>
|