JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://code.jquery.com/jquery-2.1.0.js"></script>
<body>	
<a target="_self" href="">Reload</a>
    <div id="test"></div>
</body>

JavaScript

parent.window.increment = 0;
parent.window.onscroll = function(){
    parent.window.increment++;
    document.getElementById('test').innerHTML = parent.window.increment;
    console.log(parent.window.increment);
};