4 ms·
or better yet, don't even use <form> for things that don't submit a traditional old-style POST/GET to a server. if you're handling all your logic in javascript
by dheera 7y ago
or better yet, don't even use <form> for things that don't submit a traditional old-style POST/GET to a server. if you're handling all your logic in javascript on the client side, OR doing everything with AJAJ [0], <form> is unnecessary and you can handle things with button.onClick -- you get to program it just like any other GUI.
[0] most people use JSON not XML so i prefer to call it AJAJ not AJAX
- Chickenosaurus 7y agoThere are some downsides to that approach. The <form> element has semantic meaning which is lost if it's missing. Screen readers for blind people, browser features such as form auto-fill etc. might not work as expected without this semantic information. Most web applications I have seen opt to use the form element. The default form browser behaviour can be suppressed easily.