Tao:Bio: Difference between revisions
From OpenWetWare
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Template:Tao}} | {{Template:Tao}} | ||
<html> | |||
<head> | |||
<script type="text/javascript"> | |||
var pass1='password'; | |||
var password=prompt("What's the magic word?",""); | |||
if (password==pass1) | |||
{ | |||
document.write("Correct!"); | |||
}else{ | |||
document.write('Incorrect!') | |||
} | |||
</script> | |||
</head> | |||
<body> | |||
</body> | |||
</html> | |||
{| cellspacing="3" | {| cellspacing="3" |
Revision as of 01:31, 5 February 2012
<html> <head> <script type="text/javascript">
var pass1='password';
var password=prompt("What's the magic word?","");
if (password==pass1)
{ document.write("Correct!"); }else{ document.write('Incorrect!') }
</script> </head> <body>
</body> </html>
|