Button onClick Action

User 306098 Photo


Registered User
1 post

Ok...HTML/Javascript newbie here but long-time IT guy so forgive the simple question but how do I get my site to respond to the "onclick" event in Site Designer? I want to have the user enter a number in an input field and click the [Submit] button to trigger a short Javascript function to do some calculations and return/display the values. I've got a very ugly but simple version working using the CoffeeCup HTML Editor but I can't figure out how to do this in Site Designer.
User 187934 Photo


Senior Advisor
20,196 posts

Hi Rod,
Add your script to the footer code area of your page.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.