[英]How to replace images in 2nd page when an anchor from 1st page was clicked ? in JavaScript
[英]How to change the background color of a div on 2nd page once the link from 1st page is clicked
单击更改颜色链接后,我需要使用javascript在特定div中使用背景颜色更改重定向到page2.html。
page1.html
<a href="page2.html id="page1">Change color</a>
page2.html
<div id="page2>
<h1>color change</h1>
</div>
我认为您可以用当前页面的新背景覆盖第一页背景
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.