/    Sign up×
Community /Pin to ProfileBookmark

Script to pop-up window asking Password

[FONT=”Trebuchet MS”]This is my 1st post! ?

I pasted a JavaScritp (see below) in the HTML code of a web page made in Dreamweaver. I needed a window to pop-up and ask for a Password to access certain HTML web page. It worked but after a while it didn’t anymore in IE (in Firefox it still does). It may have to do with security reasons within IE. The point is that it doesn’t even give the chance to unblock in the toolbar the blocking of windows but it moves on to the “access_denied.html” page.

[COLOR=”RoyalBlue”]<script languaje=”javascript”>
<!–
nombre=window.prompt(‘Please enter the 2010 Value:’,’****************’)
switch (nombre){
case ‘Excellency’:
break;
case ‘Excelency’:
break;
default:
window.location= “access_denied.html”;
}
–>
</script>[/COLOR]

Could you help me?? Is there any other way to do this? The simplest the better! Don’t need a super high-security code. I’m just a begginer in programming languages (I’m rather a designer).

Thanks!
Andresito[/FONT]

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @Andresito spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.7,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...