Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 620
  • Last Modified:

using javascript to save a background image as desktop wallpaper

Hi

I have a website and want to allow users to click on the main background image and be able to set this as their desktop wallpaper.

Is this possible with javascript?

thanks
0
coolispaul
Asked:
coolispaul
  • 2
  • 2
  • 2
  • +1
3 Solutions
 
botwebCommented:
No, this is not possible through JS. Otherwise JS would have to much access on the PC Enviroment wich could be used by attackers.

You could use a Java applet for this job, but today it's not a good idea to make use of Applets on Websites were it's not quiet necessary.
0
 
coolispaulAuthor Commented:
ok thanks .

If it was a hardcoded image rather than a backgound image would this make any difference?

Thanks
0
 
botwebCommented:
No, the thing is, that it's not possible to modify the OS configuration / registry of the users enviroment.
So it doesn't matter wich kind of object you are serving, if you can't manipulate the desktop wallpaper settings.
0
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
leakim971PluritechnicianCommented:
Me too, I don't think there's a cross browser way to do that. The user need to do it manually or using a plugin :
https://addons.mozilla.org/en-US/firefox/addon/backgroundimage-saver/
http://www.webdevelopersnotes.com/how-do-i/save-web-page-background-image.php
0
 
Michel PlungjanIT ExpertCommented:
Or in FF: Right click on page, view background image, set as desktop image
Works just fine
0
 
coolispaulAuthor Commented:
hi,

ok thanks. Do you think it is possible to just save the image with javascript then? Rather than saving and setting as wallpaper?

Cheers
Paul
0
 
Michel PlungjanIT ExpertCommented:
Nope. Not a chance - not unassisted JS
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now