I have two pop-ups, one for confirmation and the other for notification. I use
1-onclick = 'window.location.href = "#confirmation"'
to open confirmation box, then I use
2-window.location = "mypage.php#"
after user confirms the action, in order to clear browser link from ..../mypage.php#confirmation hash, then finally I use
3-window.location = "#notification"
. in order to open notification pop-up.
This action returns user to the top of the page. I wonder if there is any way that I can clear browser link from #confirmation hash so that I would skip second step that makes user turn back to the top of the page.