0
Onclick
How do I make it so I have a box and use the onclick function to make it so the screen changes to the content that the bubble is supposed to go to?
6 Answers
+ 2
i don't understand what you need but
take this example :
there is a div and we need to change it content using onclick
https://code.sololearn.com/W95ucU69RUBy
+ 3
If I can see your code, I can give an answer.
+ 3
provide a code sample please!
+ 2
It worked perfectly for me.
https://drive.google.com/file/d/13XDcCSIH40xRzE0N8TZwjUWoEKr-5bCW/view?usp=drivesdk
+ 1
Thanks Mukhaar I couldnât find anything as simple as thatđđ»
0
Heres the code
<!DOCTYPE html>
<html>
<head>
<button class="btn about">About</button>
<button class="btn socialmedia">Social Media</button></button>
<button class="btn profile">Profile</button>
<button class="btn contact">Contact</button>
<button class="btn homepage">Homepage</button>