No credit card. Takes under a minute.

Login
INSIGHTS1 MIN READ

How do you create an 'onclick' button with script?

Amar-V

Published on May 18, 2020

Published on Wealthy Affiliate — a platform for building real online businesses with modern training and AI.

How do you create an 'onclick' button with script?

Does anyone know how to create a button or any image that has the onlcick' code with activated script?

I got the first part right on the Thrive Themes buider.

I'm just wondering if the code would be different if using a different lander or creating a html via notepad because the code is confusing on the image it has been done.

Ready to put this into action?

Start your free journey today — no credit card required.

I opened the ' inspect' feature where you can view the source code etc.
it is very confusing im not sure where to the put the 'onclick code' also the does the script go in the same area as well because that was activated by placing in the between opening and closing header tags on.

if you know then very much appreciated

thanks,

Amar.

Share this insight

This conversation is happening inside the community.

Join free to continue it.

The Internet Changed. Now It Is Time to Build Differently.

If this article resonated, the next step is learning how to apply it. Inside Wealthy Affiliate, we break this down into practical steps you can use to build a real online business.

No credit card. Instant access.

2.9M+

Members

190+

Countries Served

20+

Years Online

50K+

Success Stories

The world's most successful affiliate marketing training platform. Join 2.9M+ entrepreneurs building their online business with expert training, tools, and support.

Member Login

© 2005-2026 Wealthy Affiliate
All rights reserved worldwide.

🔒 Trusted by Millions Worldwide

Since 2005, Wealthy Affiliate has been the go-to platform for entrepreneurs looking to build successful online businesses. With industry-leading security, 99.9% uptime, and a proven track record of success, you're in safe hands.