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?
When you want to change a webpage background image using JavaScript, you can do so by setting the background image of the document object model (DOM) property. The property you need to manipulate for changing the background image of the whole page is document. body. style.
background = "url('[INSERT HTTPS IMAGE URL HERE]')"; Note that the quotation marks are required around the url statement. This also works with . backgroundImage .
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With