2 replies
I want to put some training videos on a password protected page. Total security isn't a factor because this is free training. My company simply requires that I put it behind a password becasue we use certain examples and terminology that would be inappropriate to the general public.

I'm not even close to being a JavaScript expert... does this look right to you?

<script language= "JavaScript">
var password;
var pass1= "password";
password=prompt('Enter Password' , ');
if (password=pass1)
alert (correct password, 'Click OK To Enter.');
//-->
</script>

I just paste this into the page, right?

Do I have to designate an alternative page if they enter an incorrect password?

Thanks for your time and assistance!
#javascript #question
  • Profile picture of the author 2WDHost
    Hi Tsnyder.

    The quick, easy and relatively secure solution for you should be to put your page and videos into separate directory and password protect it with .htaccess for example.
    What control panel do you use for your site hosting? You can search for a folder password protect option there.

    Feel free to ask if you need assistance with this.
    {{ DiscussionBoard.errors[10415635].message }}
    • Profile picture of the author emuigai
      Originally Posted by 2WDHost View Post

      Hi Tsnyder.

      The quick, easy and relatively secure solution for you should be to put your page and videos into separate directory and password protect it with .htaccess for example.
      What control panel do you use for your site hosting? You can search for a folder password protect option there.

      Feel free to ask if you need assistance with this.
      This is right.
      But also a simple login script will suffice.
      {{ DiscussionBoard.errors[10416451].message }}

Trending Topics