Jump to content

coding a password program


CyberShot

Recommended Posts

The easiest possible way in the world I can think of would be to use javascript.

<br />
window.onload = function{<br />
   password = &#039;123abc&#039;;<br />
   check = prompt(&#039;What is the password&#039;, &#039;&#039;);<br />
   if(check != password) {<br />
       document.write("Wrong Password!");<br />
   }<br />
}<br />

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.