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

Prolog - Listing -

python - can't seem to get an output from my class -

orchardcms - change base url in local copy in Orchard CMS -