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?
JavaScript Question
2
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!
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!
- 2WDHost
- [1] reply
- emuigai
Next Topics on Trending Feed
-
2