Entry
Can I create a desktop link with client side JavaScript?
Can I create a desktop link with client side JavaScript?
Mar 25th, 2000 05:37
Martin Honnen, http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/adddesktopcomponent.asp
IE4+ has support for that calling
window.external.AddDesktopComponent
It takes at least two arguments, the url and the type of the link
(website or image) and optional coordinates and dimension attributes.
Here is a button to add the current page:
<INPUT TYPE="button" VALUE="add page as desktop component"
ONCLICK="window.external.AddDesktopComponent(
location.href, 'website');"
>
Here is an example adding JavaScript.FAQTs.com to the desktop:
window.external.addDesktopComponent(
'http://JavaScript.FAQTs.com',
'website'
);