javascript - Disable scrolling entirely -


is there way make "scrolling" inside element impossible? that, mean content of element must keep same position relative element. element in question has fixed dimensions , overflow: hidden;.

i not talking preventing user scroll inside element, example overriding behaviours of key presses javascript. don't think doing idea it's impossible comprehensively predict controls of user , associated key-bindings. want entirely disable scrolling, when not done user.

for example, if element contains element id attribute, accessing id (by clicking link href="#the-id-in-question") automatically cause content scroll targeted element (the 1 id) positioned @ top left of parent. example: if element in want disable scrolling contains interactive content, tabbing through again change positioning of content.


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -