|
Webteacher Software now offers
The if-then statement. OK, once again, here is the entire code. Give it a look, then we'll break it down. This is a good example of an If-Then statement. Password scripts can also be combined with an encryption function so that hackers can't break in simply by viewing your source code. The purpose of this chapter, however, is to give you some practice with if-then statements.
<HTML>
<SCRIPT LANGUAGE="JavaScript">
function password() { Ret = prompt('Type the word castle',"");} // - End of JavaScript - --> </SCRIPT>
</HEAD>
<A HREF="javascript:password()"> <H3>Click the image to enter a password protected document. Try a wrong entry first.</H3>
</BODY>
| ||
Home | WebData - Web Database Software | Javascript | CGI | Consulting | Map Builder | Contact Us | The Press Room |