The window object is the topmost object of DOM hierarchy. It represents a browser window or frame that displays the contents of the webpage. Whenever a window appears on the screen to display the contents of document, the window object is created. The properties and methods of Window object that are commonly used are listed in the below table: Properties of the Window Object
To access the properties of the window object, you will specify object name followed by a period symbol (.) and the property name. Syntax: window.property_nameExample:
Output: Before Click the Button: After Click the button: Article Tags :
Applies to: Visual Studio Visual Studio for Mac Visual Studio CodeThe Properties window is used to display properties for objects selected in the two main types of windows available in the Visual Studio integrated development environment (IDE). These two types of windows are:
Using the Properties WindowThe Properties window displays the properties of single or multiple selected items. If multiple items are selected, the intersection of all properties for all selected objects is displayed. Events related to a selected object within a form design window or HTML editor using COM+ metadata are displayed in the Properties window. For example, you can select a button and display its associated events, such as an OnClick event, which can be linked to that button. Events displayed in the Properties window are primarily used with objects that are bound to code. If you are editing a file format that does not have anything to do with code, you are not going to have any events. Events are only displayed in the Properties window when there is a binding between running code and certain events associated with specific objects. An example of this would be code behind a selected object that executes when that object is activated. The following table lists the primary interfaces used by the Properties window.
For further information on IDispatch, see the MSDN library. See also
|