Create a Desktop Icon with proper icon name, not URL name

Discussion in 'Javascript' started by Bodi, Nov 18, 2003.

  1. Bodi

    Bodi Guest

    Hello,
    Could someone please tell me if there is a way, or how do I change my
    html/javascript so that if I drag and drop a link from a webpage to
    the desktop in such a way that the name of the shortcut created is not
    the URL of the link but the link itself?
    any help is greatly appreciated.

    e.g. if the link is

    <a href="http://www.microsoft.com"> MS </a>

    then the name of the desktop icon should be 'MS' and not
    http://www.microsoft.com

    thanks again..
    ravi.
     
    Bodi, Nov 18, 2003
    #1
    1. Advertising

  2. (Bodi) writes:

    > Could someone please tell me if there is a way, or how do I change my
    > html/javascript so that if I drag and drop a link from a webpage to
    > the desktop in such a way that the name of the shortcut created is not
    > the URL of the link but the link itself?


    Cannot be done. The browser decides what it does with a drag-n-drop
    operation. It is not controlled by the page.

    /L
    --
    Lasse Reichstein Nielsen -
    DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
    'Faith without judgement merely degrades the spirit divine.'
     
    Lasse Reichstein Nielsen, Nov 18, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.

Share This Page