What is the difference between the open () and send () methods of an XMLHttpRequest object?

XMLHttpRequest an object:

open ( <method>, <url>, <is async>)
send (<request_data>)

  • How do they differ from each other and why do we need how to implement ajax?
  • Can also pass <request_data>through both methods?
+4
source share
1 answer

1.open () method will open a specific URL (for opening on the server) 2.send () method Sends an HTTP request to the server and receives a response.

-2
source

All Articles