any | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

any

what is diferance between <input type="submit">,<input type="button"> and <button type="button">

24th Oct 2019, 6:30 PM
Saurabh Yadav
Saurabh Yadav - avatar
3 Answers
+ 2
submit you indicate when you need to send data to the server, for example, in a modal registration window usually submit is set. use button then when you need something to happen without going to another page when you press a button, for example, a popup with registration will open.
24th Oct 2019, 7:30 PM
Anna/Аня
Anna/Аня - avatar
+ 1
the second and third haven’t any functional differences
25th Oct 2019, 6:14 PM
Lilit Yeghiazaryan
Lilit Yeghiazaryan - avatar