Open All Links to PDF files in a New Window

  • read

This finds all of the links pointing to PDF files and opens them in a new window. If you are using Chrome, you will need to enable popups for this to work.

 

Written by: Jacob Lett - An experienced HubSpot website design & optimization consultant who helps B2B businesses grow their revenue. He recently created the Industrial HubSpot Theme to help manufacturers quickly build their website on the HubSpot CMS platform. Connect on LinkedIn
Category: Code Snippets
Tags: