Jump to content

Fabians

Member
  • Posts

    9
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Fabians got a reaction from fredric100 in OnClick function for Button   
    Update: Found the solution for this with some googling and fiddling with code from other posts. Posting it here in case someone else needs it:
     
    <div class="sqs-block button-block sqs-block-button"> <div align="center"> <a onclick="myFunction()" class="sqs-block-button-element--large sqs-block-button-element" target="_blank">Button Text ></a> </div> </div> <script> ... your script to be triggered on click... </script>  
  2. Like
    Fabians reacted to tuanphan in OnClick function for Button   
    What do you want to do?
    https://www.w3schools.com/jsref/event_onclick.asp
     
  3. Like
    Fabians reacted to WHOisDANE in OnClick function for Button   
    Site URL: https://dtmg.io
    Is there a way to add an onclick function to a button's href code?  I've been googling and can't find anything.  Thank you! 
×
×
  • 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.