I have to transfer my client from one website to another website. This happens in client side. In this 2nd website, its using windows basic authentication system. So It popu
If this is Windows Authentication, then the response won't be prompting the client for credentials, the browser will be attempting to pass the credentials itself already. It does not quite work the way HTTP does -- you actually need to configure the browser itself to to have it send the authorization based on Windows credentials.
It does not appear that there is a simple JS solution to this at all.