In javascript I create a URL which points to a PDF and open a new window. The window title contains the URL which I would like to hide from the user.
I tried the following suggestion Set title in the window popup but this doesn’t seem to work for PDFs.
Is there a way to solve this problem?
You cannot hide the URL that way, but you can create a popup window with custom content and embed the PDF file inside, instead of directly linking to the PDF file.
Like:
But if the client don’t have a PDF plugin, they will always receive a “Save As” dialog.