Archive for the ‘javascript’ Category

December 6th, 2007 No comments

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.

Categories: HTML, javascript, webpages Tags:

Clicking to Expand Concealed Text in HTML

October 9th, 2007 4 comments

Arvind Satyanarayan’s “Toggle Visibility – Show/Hide Anything” is worth knowing about. (Click here to read more.)

Categories: blogging, HTML, javascript Tags: