By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,817 Members | 2,152 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,817 IT Pros & Developers. It's quick & easy.

Reading basic autheticated username using Javascript

P: 1
Hello everyone, I'm glad I found this community.
I have a rather strange problem.
I have a page protected by basic authentication and I need to read the username used for that on client side (e.g I go to that page, I type the username and the password, get access then I got an alert('Your username is [what I typed]')).

I didn't find anywhere a way to access basic authentication information from Javascript, so I thought I may ask here.

Thanks.
Jul 17 '08 #1
Share this Question
Share on Google+
1 Reply


gits
Expert Mod 5K+
P: 5,344
just return it with the authenticated page and read it from there ...

kind regards
Jul 17 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.