Onclick | Sololearn: Learn to code for FREE!



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?

11/16/2017 8:38:10 PM


6 Answers

New Answer


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


If I can see your code, I can give an answer.


provide a code sample please!


It worked perfectly for me. https://drive.google.com/file/d/13XDcCSIH40xRzE0N8TZwjUWoEKr-5bCW/view?usp=drivesdk


Thanks Mukhaar I couldn’t find anything as simple as that👍🏻


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>