Link A Button to Run Javascript

DigiKing Web Solutions
2 Posts
DigiKing Web Solutions posted this 23 July 2020
Ask a Question

I would like to add a button that toggles light/dark theme. I have the function code in javascript. I would like to know how to link a button to the javascript?

I would like to add a button that toggles light/dark theme. I have the function code in javascript. I would like to know how to link a button to the javascript?
Vote to pay developers attention to this features or issue.
2 Replies
Order By: Standard | Newest
Support Team
Support Team posted this 23 July 2020

Hi Monty,

I suggest to use the HTML control with the whole code of the button and the script.

...................................................
Sincerely,
Hella
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi Monty, I suggest to use the HTML control with the whole code of the button and the script. ................................................... Sincerely, Hella Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
_Alex_
20 Posts
_Alex_ posted this 19 March 2024

Hey guys,

I just wanted to post the same request. Your HTML Block is often not rendered correctly within the preview. This makes it difficult to design properly.

Why is it so difficult to just ad the "onclick" Attribute to the buttons in your UI?

We can add many click behaviors to objects but not to just call a JS Function.

I would be super happy if you'd talk about this topic one more time. Please forward it to your dev team.

Kind regards

Alex

Hey guys, I just wanted to post the same request. Your HTML Block is often not rendered correctly within the preview. This makes it difficult to design properly. Why is it so difficult to just ad the "onclick" Attribute to the buttons in your UI? We can add many click behaviors to objects but not to just call a JS Function. I would be super happy if you'd talk about this topic one more time. Please forward it to your dev team. Kind regards Alex
You must log in or register to leave comments