faqts : Computers : Programming : Languages : JavaScript : Windows

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

48 of 64 people (75%) answered Yes
Recently 6 of 10 people (60%) answered Yes

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'
  );