I'm trying to make a function that will changes the page and marks the selected div (the div is in the other page), The problem is I the function cuts off because its causing the page to refresh.
Here is the javascript code:
    function movePack1(){
    var pac1 = document.getElementById("pack1");
    window.location.href="enclosures.html";
    pac1.style.boxShadow = "0px 0px 5px blue";
}
 
    