HubSpot onFormSubmit and Other JavaScript Events

Category: Code Snippets

When embedding a HubSpot form using the JavaScript script tag it is common to want to apply some of your own functions after the form has submitted. This can be used for adding conversion pixels for Google Ads and Facebook after the form is submitted. Another use case is modifying the form markup after the […]

Continue Reading

8+ Best HubSpot CMS Developers & Web Designers USA (2026)

Category: Articles

Are you looking to hire a freelance HubSpot website developer or a dedicated HubSpot website designer? Below is a curated directory of independent HubSpot designers and developers working in the USA and Canada, organized by whether they handle design and code together or focus purely on development. Hiring an independent HubSpot web developer is ideal […]

Continue Reading

How to Change Favicon with JavaScript

Category: Code Snippets

This code comes in handy when you don’t have access to the head of the page and need to change the favicon. (function() { var link = document.querySelector(“link[rel*=’icon’]”) || document.createElement(‘link’); link.type = ‘image/x-icon’; link.rel = ‘shortcut icon’; link.href = ‘https://yourdomain.com/favicon.ico’; document.getElementsByTagName(‘head’)[0].appendChild(link); })();  

Continue Reading