Thursday, December 6, 2007

 

HTML Password Protection. There's no way to put password protection in a webpage via HTML commands, but it can be done with a simple javascript available from HTML Goodies. Here is how I got it to work. Take the code and replace the password (peppermint) and the web page address (scripttip73correct.html) with your own names. Then put the code into the file that's publicly linked. Clicking on the link will take people to the script code file, and if they get the password right it passes them on to the file you're protecting. This protection method is not very strong, since the password is written in the file, but it is pretty easy at least.

Labels: , ,

 

To view the post on a separate page, click: at (the permalink).

Links to this post:

Create a Link

<< Home