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

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

am 08.11.2007 23:48:13 von MariLu

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

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

am 09.11.2007 04:10:02 von Xsive85

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..

"JW" wrote:

> 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
>
>
>

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

am 09.11.2007 04:27:01 von Xsive85

here is a link that ask for pretty similar thing as you...
http://www.microsoft.com/office/community/en-us/default.mspx ?&lang=en&cr=US&guid=&sloc=en-us&dg=microsoft.public.frontpa ge.programming&p=1&tid=cfb69f1e-59d3-4c77-b490-34398bb3ad80& mid=b3eac959-19e1-421f-b782-1836c344cedc

"JW" wrote:

> 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
>
>
>

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

am 09.11.2007 10:36:32 von Ian Haynes

> 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


--
Ian Haynes
MS MVP FrontPage
http://www.ew-resource.co.uk