<div class="meta" robots="noindex">

</div>

Class

# WebObject

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This class was deprecated in version 2020r2. There is no replacement.

</div>

## Description

The super class of `WebControl</api/user_interface/web/webcontrol>`. Use this control when you want to add an instance of a class that has no user interface to your page. Examples of such classes are `XojoScript</api/language/xojo_script/xojoscript>`, `SerialConnection</api/hardware/serialconnection>`, a custom class, etc.

## Properties

<div class="rst-class">

table-centered_columns_3_and_4

</div>

| Name                       | Type                                       | Read-Only | Shared |
|----------------------------|--------------------------------------------|-----------|--------|
| `Name<webobject.name>`     | `String</api/data_types/string>`           | ✓         |        |
| `Page<webobject.page>`     | `WebPage</api/user_interface/web/webpage>` | ✓         |        |
| `Parent<webobject.parent>` | `WebView</api/user_interface/web/webview>` | ✓         |        |

## Property descriptions

<div id="webobject.name">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

WebObject.Name

**Name** As `String</api/data_types/string>`

The name of the control.

This property is read-only.

<div id="webobject.page">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

WebObject.Page

**Page** As `WebPage</api/user_interface/web/webpage>`

Identifies the web page that contains the control.

This property is read-only.

<div id="webobject.parent">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

WebObject.Parent

**Parent** As `WebView</api/user_interface/web/webview>`

Used to get control's parent control or `WebPage</api/user_interface/web/webpage>`.

This property is read-only.

The following line displays the name of the control's parent.

``` xojo
Label1.Text = Me.Parent.Name
```

## Compatibility

Web projects on all supported operating systems.

## See also

Object parent class; `WebControl</api/user_interface/web/webcontrol>`, `WebPage</api/user_interface/web/webpage>`
