Trigger HubSpot Popup Form on Page Load or CTA Click

HubSpot provides the ability to display a pop up form with various triggers (exit intent, after 7 seconds, etc.) But what if you want to show it immediately or when a button is clicked? Below is some javascript to help achieve this functionality.

 

Continue Reading

Category: Code Snippets

Open All Links to PDF files in a New Window

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.

 

Continue Reading

Category: Code Snippets