Jump to content

tomek_piatek

Member
  • Posts

    7
  • Joined

  • Last visited

Community Answers

  1. tomek_piatek's post in Custom event handler for "onclick" is not firing was marked as the answer   
    Arrrith... I solved the problem. I was binding my event handler when the DOM has finished loading. That is too soon. I changed it to when the page has finished loading and that works.
    This:
    window.addEventListener("load", (event) => {... instead of this:
    document.addEventListener("DOMContentLoaded", function() {...  
×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.