HRWiki:Sandbox
From Homestar Runner Wiki
(Difference between revisions)
Line 1: | Line 1: | ||
- | < | + | does it work? |
+ | <script language="Javascript"> | ||
+ | |||
+ | |||
+ | |||
+ | var password = "please" | ||
+ | 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.php/property_of_ones" | ||
+ | } | ||
+ | |||
+ | else { | ||
+ | location = "index.php/User:Sluggy42" | ||
+ | } | ||
+ | |||
+ | |||
+ | |||
+ | </script> |
Revision as of 16:20, 4 March 2006
does it work? <script language="Javascript">
var password = "please" 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.php/property_of_ones" }
else { location = "index.php/User:Sluggy42" }
</script>