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

using javascript to save a background image as desktop wallpaper

Posted on 2011-02-13
Last Modified: 2012-05-11

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?

Question by:coolispaul
  • 2
  • 2
  • 2
  • +1

Accepted Solution

botweb earned 167 total points
ID: 34882570
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.

Author Comment

ID: 34882591
ok thanks .

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


Expert Comment

ID: 34882666
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.
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

LVL 82

Assisted Solution

leakim971 earned 166 total points
ID: 34883288
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 :
LVL 75

Expert Comment

by:Michel Plungjan
ID: 34883402
Or in FF: Right click on page, view background image, set as desktop image
Works just fine

Author Comment

ID: 34938766

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

LVL 75

Assisted Solution

by:Michel Plungjan
Michel Plungjan earned 167 total points
ID: 34938793
Nope. Not a chance - not unassisted JS

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

Question has a verified solution.

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

Suggested Solutions

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

808 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