How do we Design a webpage using javascript and HTML to do change the background image on the click of a button?

JavaScript

1 answer

Answer

1045919

2026-06-07 00:26

+ Follow

put his in the style section:

.back {background-image: URL(background URL 1) ;}

.back1 {background-image: URL(background URL 2 ) ;}

.back2 {background-image: URL(backgroud URL 3) ;}

Put this code to where you want to put the buttons: (don't change anything except for the button name)

Special:Wysiwyg

Special:Wysiwyg

Special:Wysiwyg

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.