title: How can i authenticate a website using Javascript or php instead of using browsers native prompt
body: <p>I am not a professional developer and acquire little knowledge and stuck with a this problem from very long time.</p>
  
  <p>Problem:
  Instead of using browser's native login prompt, I would want user to use my login page to authenticate the site and directly open that site.
  (it should not ask user again for credentials by opening browser's native login prompt)</p>
  
  <p>Using javascript, I used simple url authentication like <a href="http://username:password@subdomain.maindomain.com" rel="nofollow">http://username:password@subdomain.maindomain.com</a> , but this only works for Chrome. 
  Is there any work around that will work with all the other browser specially with Internet Explorer?</p>
  
  <p>Any solution with javascript, jquery or even in php would be fine.</p>
  
  <p>Any help would be appreciated...Thanks</p>