1. PROMO Upgrade to Pro Membership @ $99 / Lifetime & access all our 16+ premium Divi extensions: Divi Block, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Solved How to launch an external widget from a button using Javascript

Discussion in 'Free Divi Community Forum' started by mono, May 25, 2019.

  1. mono

    mono New Member

    I am using an external provider for memberships etc. They have given me the following JS which should launch their member widget from an existing Divi button on my site. I can't figure out how to do this and was hoping someone might be able to help. Code is <a href=“javascript:Eber.toggle()“>Toggle</a>
    Thanks
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade team carousel design for your Divi site without using any plugins:View Demo
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    You can try to put it in a code module. Alternatively, try to put javascript:Eber.toggle() as the link for a button module & see if it works.
     
  3. mono

    mono New Member

    1. PRO MEMBER PERKS Divi Block Pro - 30+ premade custom footer designs for you to choose from:View Demo
  4. Divi.Help

    Divi.Help Administrator
    Staff Member

    Just tested it on my side. Adding it in the button module doesn't work. But adding it in a code module works. As for why it didn't work on your side is because of the double quote icon. It's a wrong format. Try to copy & paste the below in your code module & see if it works:
    Code:
    Log In or Sign Up to view this code.
     
  5. mono

    mono New Member

    Brilliant! Thank you so much! Now to figure out how to make it match the other buttons....
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade gradient text design for your Divi site without using any plugins:View Demo