Open All Links to PDF files in a New Window

  • Updated on
  • read
  • Add to Flipboard Magazine.

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 - Jacob started BootstrapCreative to help others learn web design and development. He has built websites for 10+ years for companies and as a freelancer. He enjoys learning and encouraging others to improve their skills.
Category: Code Snippets
Tags:

Do you want to improve your web design skills?

I would really value your feedback to help me develop new articles and training material.