Join the Mozilla’s Test Days event from 9–15 Jan to test the new Firefox address bar on Firefox Beta 135 and get a chance to win Mozilla swag vouchers! 🎁

Fungování této stránky je z důvodu údržby dočasně omezeno. Pokud žádný článek nápovědy nevyřeší váš problém a potřebujete se zeptat na další řešení, napište nám na Twitter @FirefoxSupport nebo Reddit /r/firefox.

Prohledat stránky podpory

Vyhněte se podvodům. Za účelem poskytnutí podpory vás nikdy nežádáme, abyste zavolali nebo poslali SMS na nějaké telefonní číslo nebo abyste sdělili své osobní údaje. Jakékoliv podezřelé chování nám prosím nahlaste pomocí odkazu „Nahlásit zneužití“.

Zjistit více

Links to html pages open in specified target_frame, but links to PDF pages don't (IE works.) How to fix?

  • 1 odpověď
  • 1 má tento problém
  • 1 zobrazení
  • Poslední odpověď od cor-el

more options

Links on a HTML page (within a frame) that link to a PDF page open the PDF in a new window even though target is set to _self. Similar links on the same HTML page which link to HTML pages correctly open within the same frame. Only links to PDF pages "misbehave." The same HTML code works okay in IE for both HTML and PDF pages. Examples can be seen at www.tetonsands.com

Links on a HTML page (within a frame) that link to a PDF page open the PDF in a new window even though target is set to _self. Similar links on the same HTML page which link to HTML pages correctly open within the same frame. Only links to PDF pages "misbehave." The same HTML code works okay in IE for both HTML and PDF pages. Examples can be seen at www.tetonsands.com

Všechny odpovědi (1)

more options

Works for me.

If I click a PDF link in the menu bar at the left or a PDF on one of the pages that open in the frame then the PDF file opens in the same tab and not in a new tab or window.

Reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.

  • Press and hold Shift and left-click the Reload button.
  • Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
  • Press "Command + Shift + R" (MAC)

Start Firefox in Safe Mode to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).

  • Do NOT click the Reset button on the Safe Mode start window or otherwise make changes.

I do get a notice that the PDF file may not be displayed correctly.

Current Firefox versions have enabled a built-in PDF Viewer that doesn't have all features that other PDF readers like the Adobe Reader have or may not function properly otherwise.

You can change the action for Portable Document Format (PDF) from Preview in Firefox to use the Adobe Reader or set to Always Ask in "Firefox > Options/Preferences > Applications".

You can set the pdfjs.disabled pref to true on the about:config page to disable the build-in PDF viewer.

You can check the value of the plugin.disable_full_page_plugin_for_types pref on the about:config page and remove the application/pdf part if present or reset the pref to the default via the right-click context menu.

See also: