Basic JavaScript Question:
Download Questions PDF

Methods GET and POST in HTML forms - what's the difference?

Answer:

GET: Parameters are passed in the query string. Maximum amount of data that can be sent via the GET method is limited to about 2kb.

POST: Parameters are passed in the request body. There is no limit to the amount of data that can be transferred using POST. However, there are limits on the maximum amount of data that can be transferred in one name/value pair.

Download JavaScript Interview Questions And Answers PDF

Previous QuestionNext Question
What is the data type of variables of in JavaScript? How to write a script for "Select" lists using JavaScript?