Re: How to get the bookmark from url??

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"BD" <JustMe@xxxxxxxxxxx> wrote in message
news:#hYYccvhIHA.5820@xxxxxxxxxxxxxxxxxxxxxxx
If page1.htm has a link that for example is <a
href="http://page2.htm#c2>C2</a>. How can I retrieve the "c2" in page2.htm
when it loads? Is there any way at all. I need it to make a div which is
<div id="c2" style="display:none;">
visible on load.

window.location.hash.substr(1);


.