Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at https://viewsourceconf.org

Element.onscroll

« DOM Reference

Summary

The onscroll property returns the onScroll event handler code on the current element.

Syntax

element.onScroll = event handling code

Notes

The scroll event is raised when the user scrolls the contents of a element.

Specification

HTML5 Event Listener . onscroll

Document Tags and Contributors

 Last updated by: teoli,