How do website button work? If some one tapped it where does the typed mesaage go? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do website button work? If some one tapped it where does the typed mesaage go?

Some help explain his for me. If I add a Send message button to my website, how does the button work like if some one taps it, where does the message go and how do I view it?

3rd Dec 2020, 11:32 AM
Smart
3 Answers
+ 4
The <button> element is used to create an HTML button. Any text appearing between the opening and closing tags will appear as text on the button. No action takes place by default when a button is clicked. Actions must be added to buttons using JavaScript or by associating the button with a form. Check this : https://html.com/tags/button/
3rd Dec 2020, 12:03 PM
Alphin K Sajan
Alphin K Sajan - avatar
+ 1
Use the button tag Then define the onclick event Eg onclick function Then function should post the message
3rd Dec 2020, 11:37 AM
🥇👩‍💻 Kintu Michael Evans 🔥🔥( Active)
🥇👩‍💻 Kintu Michael Evans 🔥🔥( Active) - avatar
0
The message goes to the database.
3rd Dec 2020, 1:36 PM
Krish
Krish - avatar