Trigger embed code with javascript from a link or button?

Hey Webflower and @PiterDimitrov

I’m using a GiveForms try to figure out, How can I trigger embed code with javascript from a link?

When someone clicks on Support US button. It will pop up with a window of the GiveForms donate widget on the screen of the websites.

This is the embed code.

<script src="" type="text/javascript" defer></script><link rel="stylesheet" href=""/><a class="giveforms-donation-button" href="" data-multi-step="false">Donate</a>

My Custom I did (Not Working)

  function script() {
      type="text/javascript" defer

  document.getElementById('Donate-Button').onclick = function () {

Share Link:

You need to include the JavasScript and CSS in you document before Body custom code area. Then on the page, you can create an embed where you want the button to display. Or a button inn the designer that has the class giveforms-donation-button.

So your are a non profit?

Hey @webdev,

No, we not a non-profit, We are a design agency. I was looking for different ways for people to support the journey but down road we are looking to start a Non-Profit assisting with helping people find job’s that they love round creative and innovation.

I really love being in the creative and design world but always want to help out people who have a hard time finding employment for those with disabilities or without like myself.

Thank you, so much for the help! I have been working and put the project off for a long time now.

I only asked because I like to record my time volunteering to non-profits. I think gives the impression that you are.

1 Like

@webdev :smiling_face_with_three_hearts:

So, I did what you said I have had add the links in body but not working or show up with the lightbox.

Actually no. You used incorrect HTML.


I just created a demo. Here is the read only link.

Thanks, so I had in the script not the head.