View Full Version : JS Function - Passing in a Page Title

01-26-2009, 03:19 PM
Hey Guys,

I've got the following JS function:

<script language="JavaScript" type="text/JavaScript">
function MM_openBrWindow(theURL,winName,features) { //v2.0

It's being used, as shown below, to throw a pop-up and open a PDF:

<a href="javascript:;" onClick="MM_openBrWindow('http://www.test.com/pdf_01.pdf','','scrollbars=yes,width=768,height=500,resizable=yes')" title="">PDF Name</a>

It's done this way to hide the name of the PDF, however when the PDF opens, it still shows the name of the PDF in the title bar of the new window. Is there a way I can pass in another var that will replace the title of the new window that is opened?

Any suggestions would be appreciated. Thanks.

01-26-2009, 04:10 PM

All modern browsers will also show the path to the document for security reasons. If you do not want the user to be able to locate it, you might have to resort to snail mail. :)

If you use proper serverside authentication to be able to download documents, than there would be no issue since only people that are allow to access the file can.


01-26-2009, 04:14 PM
That's what I had figured .. just wanted to double check .. thanks.