If the visitor is able to find the "View Source" menu item in his browser he is extremely dangerous hacker who can penetrate through all your JavaScript password protection systems cause you store the password in your source HTML code... But the technique described here is a real and simple JavaScript solution to protect a page from being viewed. Visitors will get nothing from your source text.