Which of the following can't be done with client-side JavaScript?
Answers
narendra he brought home cats
Correct Question:
Which of the following can't be done with client-side JavaScript?
A. validating a form
B. sending a form\s contents by email
C. storing the form\s contents to a database file on the server
D. none of the above
Answer:
Option B is the answer
Sending a form\s contents by email
With JavaScript, you can't send a form.There are, however, several ways to transmit form data to an email address. JavaScript does not provide a direct method for sending data from a form to an email address.The lack of a 'JavaScript email form' function is primarily due to security concerns.
Validating a form
Because JavaScript allows for form validation on the client side, data processing is faster than with server-side validation. The majority of web developers choose JavaScript form validation.
Storing the form\s contents to a database file on the server
On the client side, there are now four active methods for saving data.
1.Cookies, for starters (old school, still useful because they are sent with server requests)
2.Storage on-site (very easy to use)
3.Storage of Sessions (exactly the same, only clears when the tab is closed)
4.IndexedDB is a database that has been indexed (quite complex, quite powerful)