locked
How to get the event of the appearance of browser's scrollbar RRS feed

  • Question

  • User-86041214 posted

    Hi:

    I try using jquery or javascript to get the event of the appearance of browser's scrollbar ,

    but they all not work. 

    the code snippet is as following:

            function Init () {
                var div = $(window).get(0);
                if (div.addEventListener) {
                    div.addEventListener ('overflow', OnOverflowChanged, false);
                    div.addEventListener ('underflow', OnOverflowChanged, false);
                }
            }
    

    is there any other good way to do that, thanks a lot.

    Friday, April 20, 2018 4:05 AM

Answers

All replies