My point was simply, if you're posting a technical question in a web development forum, you have to use terminology that web developers use. The term "layer" means lots of things in lots of contexts. In the context of HTML development, "layer" was a proprietary element Netscape introduced, which was deprecated several years ago (considerably more than 5 minutes).
If you want to programmaticaly set the visibility of div elements, then it would make the most sense to ask "how do I set the visibility of a div element". People wanting to ask a similar question would be more likely to find this thread in the future, a key benefit to using a forum site.
Your originating link would contain a querystring:
<a href="myDestination.html?activeDiv=myDiv2">link</a>
The myDestination page would have an onload script which parsed the querystring, using location.search, to set the myDiv2 style visibility to "visible".
document.getElementById("myDiv2").style.visibility = visible;