Once the change color link is clicked i need to redirect to page2.html with a background color change in the particular div using javascript.
page1.html
<a href="page2.html id="page1">Change color</a>
page2.html
<div id="page2>
<h1>color change</h1>
</div>
我认为您可以用当前页面的新背景覆盖第一页背景
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.