0

i want to click in button and something happend like to go to a vidéo or somthing

22nd Jan 2025, 12:39 PM
IPPO
IPPO - avatar
6 Réponses
+ 3
show your code. tag the relevant programming language. describe precisely what it is supposed to do.
22nd Jan 2025, 12:48 PM
Lisa
Lisa - avatar
+ 2
You can use a link <a>. Links are covered in the course.
22nd Jan 2025, 5:06 PM
Lisa
Lisa - avatar
+ 1
i did jst <button> entrer</button>
22nd Jan 2025, 5:02 PM
IPPO
IPPO - avatar
+ 1
Use this <a href='https://www.youtube.com'> Go To YouTube </a> Replace the link in href with your preferred URL.
25th Jan 2025, 5:15 AM
Mustafa Raza
0
Think about it, how is the code supposed to know what you want to happen when you click on the button. You need to use Javascript. Take the javascript lessons and if you still need help come back and ask.
22nd Jan 2025, 7:24 PM
Zvi
Zvi - avatar
0
IPPO Javascript provides the interaction you want. If you take the Intro to Javascript course, You will learn you need to add onclick="JS code" attribute to the <button> opening tag.
24th Jan 2025, 5:05 AM
Shardis Wolfe