Can I Block the Address Bar and Title Bar in a New Window?

  • Thread starter Thread starter JW
  • Start date Start date
J

JW

Website A contains a PDF document. I would like to open this PDF from a link
in Website B, displaying the document in a new window. When I do that, the
document's url and file name are displayed in the new window's title bar and
address bar. Is it possible to block both of those, so that the original url
is not displayed? PS: I'm not cheating. I'm doing this at the request of
Website A's owner!
Thanks,
JW
 
why dont you just make it so people download the file to their computer and
then they can choose to view it or open it??

not sure on the coding to do that, i know if you make a new page where all
that PDF information can be place but why would you want to hide the address
bar..??? in the end a person just has to go back to old webpage (original
one) to to page properties and view page source and they have your entire URL
code anyways..
 
why dont you just make it so people download the file to their computer
and
then they can choose to view it or open it??

You can't force a download either without using some fairly complex script
in asp or php.

See the 'Force a download box..' for an asp example at
http://www.fp-resource.co.uk/asp_examples.asp

What you can do with a bit of JavaScript is suggest users download, although
they still have the option to open the file.

See: http://www.ew-resource.co.uk/js-tips.aspx

HTH
 
Back
Top