Solved

Add shortcut to desktop code

Posted on 2006-07-13
4
392 Views
Last Modified: 2008-02-01
hi

i am look for code that will place a desktop shortcut to a webpage.

i would like to offer our customers a link that they can click on which will then add a desktop shortcut to their pcs to our home page with a customized icon.

can anyone help?

thanks
0
Comment
Question by:naifyboy123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 10

Accepted Solution

by:
0h4crying0utloud earned 500 total points
ID: 17102459


I'm pretty sure that cannot be done for security reasons (if you could do that, you could also do a lot of other bad things).  

But  one alternative solution would be to make an img link that looks just like a desktop shortcut on your page and ask them to drag the shortcut icon to their desktop. This would create a similar looking icon right on their desktop and that requires no fancy coding.

0
 

Author Comment

by:naifyboy123
ID: 17102672
i was thinking of the same kind of functionality as an "add to favorites" link.

i already have one of these as wanted to add the desktop shorthcut option as well.
0
 
LVL 10

Expert Comment

by:0h4crying0utloud
ID: 17102881

that's right but there's a big difference between adding to favorites and adding to the desktop.  

to add to the desktop you really have to create file on end user's c drive and that's a big no no.

Unlike the favorites, there is no convenient javascript method to do this.


0
 

Author Comment

by:naifyboy123
ID: 17103133
ok - thanks - i'll leave this Q open for a while and see what comes in - thanks again
0

Featured Post

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question