javascript - redirect then jump somewhere inside another page -


i'm trying redirect page header("location: example.com/myotherpage/5#jumphere"); when if condition true jump somewhere inside page using <a name="jumphere"></a> # being url encoded %23 doesn't jump section of page..

is possible prevent # being encoded? or there way this?

[update] tried doing $('html, body').animate({ scrolltop: $('#jumphere').offset().top }); instead.. jumps want scrolls again top page.. how prevent going top?


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -