Jump to content

CHSB

Member
  • Posts

    2
  • Joined

  • Last visited

Posts posted by CHSB

  1. On 11/27/2020 at 11:08 PM, fredric100 said:

    You almost had it Fabians. You just need to define the Javascript function that you're calling, like this:

    <div class="sqs-block button-block sqs-block-button">
      <div align="left">
      <a onclick="myFunction()" 
         class="sqs-block-button-element--large sqs-block-button-element" target="_blank">Button Text</a>
      </div>
    </div>

    <script>
    function myFunction () {

         (your javascript to be triggered goes here)

    }
    </script>

    When I try this and replace the (your javascript to be triggered goes here), the button looks great. Upon testing, it does nothing. Below is the code I used...what am I missing?

     

    <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">I'm ready to watch the class</a>
      </div>
    </div>

    <script>
    function myFunction () {

    <a href="javascript:;" onclick="ml_webform_3970552('show')">
    }
    </script>

×
×
  • 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.