Javascript - window.onscroll doesn't work

2/2/2014·1 min read

following window.onscrolldoens't work, it style contains overflow hidden

<script language="javascript">// <![CDATA[
window.onscroll = function (event) {
            // called when the window is scrolled.
            alert("sc");
        }
// ]]></script>
</pre>
<p>My problem... was this css.</p>
<pre>html, body {
	overflow-x: hidden;
}