Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pdf in browser window

Status
Not open for further replies.

lminmei

Programmer
Feb 1, 2000
111
US
I'm having trouble with pdf files.
When i open a pdf file in a new window, the title shows the entire URL of the pdf page. Is there any way to take this title out? Or is there a way to change that title from the URL to something like "Generated Report"?
here's the code:

<a href=&quot;Javascript:;&quot; onclick=&quot;window.open('#RptName#.pdf','print','width=636,height=580,scrollbars=yes,resizable=yes,menubar=no,title=Mainframe Reports');&quot;>#RptTitle#</a></td>
 
What if you added the location attribute?

<a href=&quot;Javascript:;&quot; onclick=&quot;window.open('#RptName#.pdf','print','width=636,height=580,scrollbars=yes,resizable=yes,menubar=no,location=no,title=Mainframe Reports');&quot;>#RptTitle#</a>

I don't know if that will work with pdf documents but it does with pop ups.

Hope this helps

AJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top