Jump to content

Hades

Members
  • Posts

    3
  • Joined

  • Last visited

Hades's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Unfortunately, as part of secrecy im unable to give the link to the page. I'll give it a try and PM you if it works or not.Oh yay! I think I got it working. Hope it stays like dat. :s
  2. Its not that. Im trying to make it such that when the password is correct, it takes me to another WEBPAGE, not a file on my computer. So therefore it would link to a webpage over the net as Im trying to get it on my website to make people i dislike from accessing some details.
  3. I got this off a website and wanted to put it in my website. Everything has been credited, except I cant get the script to link to a website rather than a file on my computer. Any suggestions? I believe the code requiring changing are in "b" tags <HEAD><script type="text/javascript"><!-- Begin/* This script and many more are available free online atThe JavaScript Source :: http://javascript.internet.comCreated by: Javascript Newbie :: http://expage.com/javascriptnewbie*/var password;var pass1 = "pass"; // place password herepassword=prompt("Please enter your password:","");if (password==pass1) { [B]window.location= "<location>"[/B]; // file to open if password is correct} else { window.location= "test.html"; // file to load if password is incorrect}// End --></script><p><center><font face="arial, helvetica" size"-2">Free JavaScripts provided<br>by <a href="http://javascriptsource.com">The JavaScript Source</a></font></center><p><!-- Script Size: 0.81 KB -->
×
×
  • Create New...