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
Post a Comment