1.

How will you send a request for AJAX in JavaScript?

Answer»

AJAX creates HTTP requests with the HELP of XMLHttpRequest. It promotes transferring data between the client and the SERVER, which is the request and response SELECTION. Developers can perform the same operation and fetch data from URL WITHOUT a page refresh through AJAX. There are THREE steps for doing this:

  • Create the XMLHttpRequest object.
  • Open the request using the open method.
  • Send the request via the send method.


Discussion

No Comment Found