How do i refresh a page with a hash?

Posted by acidzombie24 on Stack Overflow See other posts from Stack Overflow or by acidzombie24
Published on 2010-04-10T10:35:54Z Indexed on 2010/04/10 10:43 UTC
Read the original article Hit count: 214

Filed under:
|

I refresh pages by writing window.location = window.location; however this doesnt work on a page like /page#c22. It will just jump to whereever c22 is. How do i refresh the page? It does not need to use go to #c22 once refreshed but i am sure there is a more dependable way then window.location = window.location

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html