![](/img/trans.png)
[英]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.