var isnav = '<%=Session("DisplayForm")%>'
if (isnav != '') {
window.location.hash = '#editform';
}
<a name="editform"> </a>
This is my code. I tried to show the window on the anchor tag using location.hash. but the problem is after reload it is going back to the top of the page. the value Session("DisplayForm") is 1.