I am new with Web Development. I have created a single web page called "Background Generator" with html,css and javascript together. User can choose two colors or let random process to pick them. Then two colored background is displayed. The question is how can a user download only background that he/she created with a download button. Thanks for any help
EDIT
I have a single web page project that was an exercise in online Web Development course. We have created background by changing body.style.background property and set to "linear-gradient(to right, " + color1.value + ", " + color2.value + ")" color1 and color2 are picked by user. And my question comes, now user can see a styled two colored web page. I want user to be able to download the background that he/she has created as .png or .jpg , shortly as a picture. Thanks for any help