How js manually triggers window scrolling window.onscroll events

< H2 > cause of problem < / H2 > The height of the page created by

is set to 100%, so the outermost scroll bar is not scrollable and is set to overflow:hidden.
how the window.onscroll scrolling event should be triggered when scrolling a dom element inside a page.

because some plug-ins need to listen for window.onscroll scrolling, you want to trigger this window scrolling event as well when the internal dom scrolls.

Mar.03,2021

window.onscroll=function(){alert(1)}
var evt = window.document.createEvent('UIEvents'); 
    evt.initUIEvent('scroll', true, false, window, 0); 
   window.dispatchEvent(evt);
scrollcreateEventdispatchEvent
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b32ee2-2b5ce.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b32ee2-2b5ce.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?