Geeky Ninja Geeky Ninja - 1 year ago 92
HTML Question

Stop Vertical Scrolling on right click using Jquery

In my application when user presses right click I display some options to user and when user clicks on any option like copy page is scroll to top always.

I just need to stop the page scrolling.

I have tried to use animate method of jQuery, but this is not working.

scrollTop: $('#CopyImage').offset().top
}, 0);

Answer Source

Probably you copy option is a element like that:

<a href='#' >copy</a>

just replace # with javascript: void 0;

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download