<p>Using the client-side ASP.NET AJAX library, I have created an instance of a client component with the $create shortcut-method (<a href="http://msdn.microsoft.com/da-dk/library/bb397487(en-us).aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/da-dk/library/bb397487(en-us).aspx</a>). The object is attached to a DOM element. Now I need to get a reference to the instance, but it is neither registered on window or on the DOM element, and I cannot find it anywhere.</p>

<p>Does someone know how you can obtain a reference to the instance?</p>

<p>Best regards,</p>

<p>JacobE</p>

According to MSDN, Sys.Component.Create should return the object that it just created. And, $create is just a shortcut for Sys.Component.create.
```
```
Returns: A new instance of a component that uses the specified parameters.
```
```
So, try:
```
```
var instance = $create(someType);
```
```