Other PDF Issues

How to Open Links in a New Browser Tab from an Embedded PDF

John WilsonJohn Wilson Oct 28, 2026 869 views

Question details

The user needs to force hyperlinks within an embedded PDF file to open in a new web browser tab rather than the same frame.

How to Open Links in a New Browser Tab from an Embedded PDF
Product
PDF
Device & OS
not provided
Scenario
Clicking a hyperlink inside a PDF document that is embedded and viewed directly within a web browser.
Observed behavior
Modern browsers like Chrome and Edge ignore or block the Acrobat JavaScript app.launchURL command meant to trigger a new window, while Firefox successfully executes it.
Before you start

Understand that modern browsers use their own built-in PDF viewers with strict security models, which often override or disable embedded Adobe Acrobat JavaScript commands.

Solution 1Recommended

Use PDF.js for Web-Based PDF Rendering

Bypass native browser PDF viewer inconsistencies by rendering the PDF with an open-source JavaScript library.

Native browser PDF viewers handle Adobe JavaScript differently. Chrome reads the URL but ignores the new tab command, and Edge disables the JavaScript entirely. Utilizing PDF.js gives developers full control over link behavior across all browsers.

1
Download PDF.js

Acquire the open-source PDF.js library from its official repository and integrate it into your website's codebase.

2
Render the Document via Web

Use the PDF.js library to render the PDF file on your webpage instead of relying on the native <embed> or <iframe> HTML tags.

3
Modify Link Targets

Implement or modify the link annotation functionalities within PDF.js to force target='_blank' so that all clicked hyperlinks successfully open in new browser tabs.

Use PDF.js for Web-Based PDF Rendering
Consistent Cross-Browser Behavior: Because PDF.js renders the document using standard web technologies, it ensures identical link-clicking behavior across Google Chrome, Microsoft Edge, and Mozilla Firefox.
WPS PDF Editor

Edit and Manage PDF Hyperlinks with WPS Office

While browser viewers limit JavaScript functionality, modifying your PDF to use standard hyperlinks rather than JavaScript actions can improve baseline compatibility. WPS Office provides a powerful, free PDF Editor to insert clean, standard links into your documents effortlessly.

  1. 1. Open WPS Office: Launch the WPS Office application on your computer and open your target PDF file.
  2. 2. Access the Edit Tab: Navigate to the 'Edit' tab located in the top ribbon and select the 'Link' tool to manage your hyperlinks.
  3. 3. Add a Standard Web Link: Draw a link box over your desired text, choose 'Open a web link', and enter the target URL to ensure standard PDF link compatibility without relying on custom JavaScript.
Easily add, edit, or remove hyperlinks directly within your PDF filesFully compatible with Microsoft Office formats and standard Adobe PDF filesLightweight application with a familiar, user-friendly interface
microsoft office alternative - wps office

Frequently Asked Questions

Why does my embedded PDF link open in the same tab in Chrome?

Chrome's built-in PDF viewer can decode native PDF URLs but actively restricts commands like 'bNewFrame = true' from Acrobat JavaScript app.launchURL due to browser security and popup prevention policies.

Does changing the PDF link to open in a new window work in Microsoft Edge?

Not if the link relies on Adobe JavaScript. The default PDF viewer in Microsoft Edge often cannot decode embedded Acrobat JavaScript at all, causing the hyperlink to become completely inactive when clicked.

Can I force a new tab without using PDF.js?

There is no native, PDF-only solution guaranteed to work across all modern web browsers. While viewers like Firefox may honor the request, achieving universal browser compatibility requires using a web-based JavaScript renderer or placing standard HTML links on the page.

How do I test PDF link behavior across different browsers?

You should open the webpage hosting your embedded PDF in Chrome, Edge, and Firefox separately. Click the PDF link in each browser to observe whether it opens a new tab, overrides the current frame, or remains completely inactive.