最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Set desktop background image with JavaScript - Stack Overflow

programmeradmin5浏览0评论

Is it possible to set the desktop background image using JavaScript? I'm pretty sure it's not possible but I thought I would check.

If it isn't possible, is there any way for it to be done from the page?

Is it possible to set the desktop background image using JavaScript? I'm pretty sure it's not possible but I thought I would check.

If it isn't possible, is there any way for it to be done from the page?

Share Improve this question asked Jan 26, 2010 at 15:21 William HurstWilliam Hurst 2,2395 gold badges33 silver badges55 bronze badges 2
  • 1 :o you have 666 rep ... wicked ... +1 to save you ;) – Gabriele Petrioli Commented Jan 26, 2010 at 15:27
  • nnnnnoooooooooooooo ... damn. – William Hurst Commented Jan 27, 2010 at 7:43
Add a ment  | 

3 Answers 3

Reset to default 11

If that was possible, it would be a serious security issue. Many browser allow the user to right-click an image and select "use as wallpaper" or something similar.

No, this is not possible (without a browser plugin).

You should just write instructions to the user for how to set an image as their wallpaper.

I certainly hope not.

Changing the OS's desktop background requires access to the filesystem. JS doesn't have this, but browser plugins (Java applets, Flash, etc) do, so that's where you'd need to look.

发布评论

评论列表(0)

  1. 暂无评论