Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

force login prompt

Status
Not open for further replies.

fayna

Programmer
Jan 14, 2002
35
ES
Hello,
I'd like to know if it's possible to force navigator's login prompt using JavaScript.

Thanks
 
Windows's prompt for user and password. I'd like to force this prompt to appear from code, regardless security settings.

Thanks
 
...regardless security settings
I'm not sure I understand your question completely, but I don't believe this is possible with JavaScript. Are you saying you want your site to have anonymous access, but you still want to be able to prompt them for a username and password? If so, you could restrict access to a subfolder of your site and load a page from this folder into a hidden Iframe to get the prompt, but I don't know what good that would do you. Why do you need to prompt the user for a password on a site that isn't password protected? Can you explain a little further?

Adam
 
I'd like to force this prompt to appear from code, regardless security settings.

Are you developing a Phishing site by chance? I would be seariously worried if you could do this.
 
I only want users to change the initial session user and password because some of them have different users for different applications of the intranet.

Thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top