Single Choice Easy

QWhat is the purpose of the XMLHttpRequest method open() in AJAX?

ID: #19099 What is AJAX 128 views
Question Info
#19099Q ID
EasyDifficulty
What is AJAXTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A To close the current XMLHttpRequest object ✔ ✖
  • B To open a new browser window ✔ ✖
  • C To initialize a request ✔ ✖
  • D To retrieve the response text ✔ ✖
Correct Answer

Explanation

The open() method in AJAX is used to initialize a new request. It specifies the HTTP method, the URL of the server, and other optional parameters before sending the request.

Share This Question

Challenge a friend or share with your study group.