J
Jerry
Guest
I am running Window XP Pro and since many services have stopped supporting
IE6, I have installed IE8.
I make simple webpages for friends and some of them want the websites
passworded for access. I use the follow code to password the sites:
var password = "password" ;
// The desired password
var message = "This is out of bounds,if you have the password come right in,
if not please leave ";
// The message to show when the user is prompted for the password
var incmess = "Looks like you weren't invited, Please leave!";
// The message to show if the password is incorrect
var pw = prompt (message,"");
if (pw != password) {
alert (incmess);
top.location.href = "url for redirect";
}
This code in IE6 yields a popup to enter the password and if the wrong
password is entered, the user is redirected to a url of my choosing.
In IE8 no popup to enter the password is produced and when the page is
clicked, the user is redirected to the url chosen for redirect.
I tried using the meta tag:
This yields the same results as IE so is of no help.
My question is for those using IE8 how do I get IE8 to give the popup to
enter the password?
Any help would be greatly appreciated.
Thank you.
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4888 (20100222) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
IE6, I have installed IE8.
I make simple webpages for friends and some of them want the websites
passworded for access. I use the follow code to password the sites:
var password = "password" ;
// The desired password
var message = "This is out of bounds,if you have the password come right in,
if not please leave ";
// The message to show when the user is prompted for the password
var incmess = "Looks like you weren't invited, Please leave!";
// The message to show if the password is incorrect
var pw = prompt (message,"");
if (pw != password) {
alert (incmess);
top.location.href = "url for redirect";
}
This code in IE6 yields a popup to enter the password and if the wrong
password is entered, the user is redirected to a url of my choosing.
In IE8 no popup to enter the password is produced and when the page is
clicked, the user is redirected to the url chosen for redirect.
I tried using the meta tag:
This yields the same results as IE so is of no help.
My question is for those using IE8 how do I get IE8 to give the popup to
enter the password?
Any help would be greatly appreciated.
Thank you.
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4888 (20100222) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com