I have this in CSS :
#box:target {
box-shadow: 0px 0px 20px black;
}
On a "parent" page (page1), I have a button that makes you go to another page : "page2.html#box". So the #box:target
is applied when I the page is loaded.
But with a button on the page1, I activate a function which purpose is to change the #box:target
properties. I'm looking for a way to change this in javascript. Not :focus
.