Highlighted

javascript password protect

Explorer ,
Oct 31, 2017

Copy link to clipboard

Copied

How can I make this Javascript fire when some text, image or shape is clicked on my muse page?

<SCRIPT>
function passWord() {
var testV = 1;
var pass1 = prompt('Please Enter Your Password',' ');
while (testV < 3) {
if (!pass1)
history.go(-1);
if (pass1.toLowerCase() == "letmein") {
alert('You Got it Right!');
window.open('protectpage.html');
break;
}
testV+=1;
var pass1 =
prompt('Access Denied - Password Incorrect, Please Try Again.','Password');
}
if (pass1.toLowerCase()!="password" & testV ==3)
history.go(-1);
return " ";
}
</SCRIPT>
<CENTER>
<FORM>
<input type="button" value="Enter Protected Area" onClick="passWord()">
</FORM>
</CENTER>

This discussion should give you an idea about integrating JavaScript with your Muse page.

I need to insert some Java script in my muse page. What is the best way to do that?

Thanks,

Preran

Views

288

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

javascript password protect

Explorer ,
Oct 31, 2017

Copy link to clipboard

Copied

How can I make this Javascript fire when some text, image or shape is clicked on my muse page?

<SCRIPT>
function passWord() {
var testV = 1;
var pass1 = prompt('Please Enter Your Password',' ');
while (testV < 3) {
if (!pass1)
history.go(-1);
if (pass1.toLowerCase() == "letmein") {
alert('You Got it Right!');
window.open('protectpage.html');
break;
}
testV+=1;
var pass1 =
prompt('Access Denied - Password Incorrect, Please Try Again.','Password');
}
if (pass1.toLowerCase()!="password" & testV ==3)
history.go(-1);
return " ";
}
</SCRIPT>
<CENTER>
<FORM>
<input type="button" value="Enter Protected Area" onClick="passWord()">
</FORM>
</CENTER>

This discussion should give you an idea about integrating JavaScript with your Muse page.

I need to insert some Java script in my muse page. What is the best way to do that?

Thanks,

Preran

Views

289

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Oct 31, 2017 0
Adobe Employee ,
Nov 02, 2017

Copy link to clipboard

Copied

This discussion should give you an idea about integrating JavaScript with your Muse page.

I need to insert some Java script in my muse page. What is the best way to do that?

Thanks,

Preran

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 02, 2017 0