How do I open a link in the same window and tab using the onclick event?
I used this and it worked
<a href="#" class="home_btn" onclick="location.reload();location.href='index.jsp'">منوی اصلی</a>
change your :
onclick="window.open('index.jsp#home')" >home</a>
to
onclick="parent.location='index.jsp#home'">home</a>
no need to reload.