Open a secured URL containing a pdf file using javascript in safari by passing username and password
I have a webpage where i show a list of links pointing to pdf files. These links are https links, which require username.password to access the link. My requirement is that when i click on the link.. it should open the pdf file referred by link in an iframe, without asking for username.password? 
right now when i click on the URL it first shows me a prompt to enter username/password and then opens the pdf file in the same page itself.

please help me with this?
Open a secured URL containing a pdf file using javascript in safari by passing username and password
===

I have a webpage where i show a list of links pointing to pdf files. These links are https links, which require username.password to access the link. My requirement is that when i click on the link.. it should open the pdf file referred by link in an iframe, without asking for username.password? 
right now when i click on the URL it first shows me a prompt to enter username/password and then opens the pdf file in the same page itself.

please help me with this?