0

How do i make my Buttons work with JavaScript on my html code?

I am new to coding so i would appreciate help.

9th Jul 2025, 10:10 AM
Berken Telli
3 ответов
+ 1
show your code. describe precisely what the buttons should do.
9th Jul 2025, 10:23 AM
Lisa
Lisa - avatar
0
You can make the button redirect to a page by js onclick, If you're not clear, Check here for working code: https://sololearn.com/compiler-playground/WgkkOoEn8bFo/?ref=app
9th Jul 2025, 12:08 PM
ZORO THE PIRATE 🏴‍☠️
ZORO THE PIRATE 🏴‍☠️ - avatar
0
Sololearn has no HTML tags or attributes in JavaScript to work with elements. But in other editors, you can make a button turn red or change the font when you click it. And here you can simply call alert(). https://www.sololearn.com/ru/compiler-playground/Wz0q0czYAh7F/?ref=app
9th Jul 2025, 6:49 PM
Mila
Mila - avatar