Jake,
That depends really on what language you're using. You mention both Java and JavaScript. They aren't interchangeable, and are indeed very different languages.
Plus, I'm not clear on your question. No language will let you "access" a password protected page. What exactly are you trying to do, and with which programming language?
tgreer
Made Her Cry
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37
Javascript is definitely NOT the way to go to password protect pages. Since the Javascript source is available for your visitors to read it is not hard to reverse engineer the code to work out what the password must be with most such scripts.
felgall
Junior Poster in Training
50 posts since Aug 2004
Reputation Points: 13
Solved Threads: 1
Yes, the Java forum. JavaScript is client-side. It will only run in a client browser. In other words, you can't make YOUR JavaScript run in someone else's page.
tgreer
Made Her Cry
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37