---
title: "What is the syntax to create AJAX objects?"  
description: "What is the syntax to create AJAX objects?"  
author: "Sumit Kesarwani"  
published: 2014-09-04  
updated: 2020-09-22  
canonical: https://www.mindstick.com/interview/2146/what-is-the-syntax-to-create-ajax-objects  
category: "asp.net"  
tags: ["asp.net"]  
reading_time: 1 minute  

---

# What is the syntax to create AJAX objects?

**AJAX uses** the following syntax to create an object:

var myobject = new AjaxObject("page path");

The page path is the URL of the Web page containing the object that you want to call. The URL must be of the same domain as the Web page.

## Answers

### Answer by Sumit Kesarwani

**AJAX uses** the following syntax to create an object:

var myobject = new AjaxObject("page path");

The page path is the URL of the Web page containing the object that you want to call. The URL must be of the same domain as the Web page.


---

Original Source: https://www.mindstick.com/interview/2146/what-is-the-syntax-to-create-ajax-objects

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
