javascript - How to prevent web page from scrolling back to the top of the browser? -


i have web page listing of items such books, , it's been rendered javascript, making requests restful services. however, if scroll down bottom of browser, , select view item, , press browser button, page doesn't scroll down bottom. instead, scrolls top of browser.

how can make web page scrolls previous location?

it depends on how implementing events.

i suppose attached event link , set href attribute "#". why scroll goes top.

if using jquery, can use preventdefault() method event object , should work. otherwise, if return false in event handler, action should stop.

can provide code of how you're calling resful service?


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -