asp.net.ph

Skip Navigation Links

AddDesktopComponent Method

DHTML Methods


Adds a Web site or image to the Microsoft® Active Desktop™.

Syntax

window.external.AddDesktopComponent ( sURL, sType, 
  iLeft, iTop, iWidth, iHeight ) 
Parameters

sURL Required. Specifies the location of the Web site or image to be added to the Active Desktop.
sType Required. Specifies the type of item being added. The value "image" specifies the component is an image. The value "website" specifies the component is a Web site.
iLeft Optional. Specifies the position of the left edge in screen coordinates.
iTop Optional. Specifies the position of the top edge in screen coordinates.
iWidth Optional. Specifies the width in screen units.
iHeight Optional. Specifies the height in screen units.

Return Value

No return value.

Remarks

Active Desktop must be installed for the AddDesktopComponent method to work. If Active Desktop is not installed, the method is not invoked.

Example

The following example adds the Microsoft Web site as an Active Desktop component.

window.external.AddDesktopComponent ( 
  "http://www.microsoft.com", "website", 
  100, 100, 200, 200 );
Applies To

external



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note