Reading basic autheticated username using Javascript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JuniorScripter
    New Member
    • Jul 2008
    • 1

    Reading basic autheticated username using Javascript

    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.
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    just return it with the authenticated page and read it from there ...

    kind regards

    Comment

    Working...