homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

Browser Setting to Open New Window for PDF's

 8:00 pm on Sep 5, 2005 (gmt 0)

Is there a way to default PDF's opening in a new window in either IE, Opera or FF? - PDF's only that is, all else in current window?



 10:32 pm on Sep 5, 2005 (gmt 0)

Could you not simply use a bit of javascript in the a href pdf tags? (i.e. <a href="whatever.pdf" target="_blank">View PDF</a>


 10:36 pm on Sep 5, 2005 (gmt 0)

I thought pdf displays automatically opened in a new window. Silly me. -LH


 11:15 pm on Sep 5, 2005 (gmt 0)

A bit of clarification, yes indeed PDF's open in a new window if the link is structured that way with JavaScript.

The problem that aggravates me is when a large PDF opens in the current window, which I believe is default, as with most links.

Except for a Kill Task, there does not seem a way to interrupt the download process. And if you kill the task you lose your place in browser history, so no going back to what originally led you to the PDF.

I always add the new window code to PDF links but a G search that yields PDF's does not and it is these that can cause me the problem. So, it would be nice if you could set PDF's to always open in a new window irrespective of the actual link code.


 11:26 pm on Sep 5, 2005 (gmt 0)

Maybe - Tools/options/Advanced/Tabbed browsing/other apps...


 1:58 pm on Sep 6, 2005 (gmt 0)

The problem with setting PDF's to open in a new window is that without a browser plug-in you end up with a blank window that needs to be closed to get back to the site.


 4:34 pm on Sep 6, 2005 (gmt 0)

When I'm using a tabbed browser (Firefox, Opera, Avant, Maxthon. . . ), is MIDDLE click links to open them in a new tab (which I believe is the default behavior for several of these browsers). An ordinary left-click will still open the link in the current tab.

If for some reason you don't prefer that method, couldn't you simply right-click the link and choose "open in new window" (or tab if you prefer in browsers that allow it)? Sure it's not as convenient, but it should work with ALL browsers and not interfere with your preference to open most links in the calling window.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved