Converting Jquery to Javascript
<p>Sorry, I am am very poor at JQuery.</p>

<p>I got one code for my requirement which is Jquery. Can any one please convert it into plain javascript</p>

<pre><code>$(window).scroll(function() {
    var scrollTop = $(window).scrollTop();
$("#mybox").css("top", scrollTop + "px");
});
</code></pre>

<p>css part</p>

<pre><code>#mybox
{
    position:absolute;
    width:200px;
    height:50px;
    background-color:red;
}
</code></pre>

<p>I am using it display a floating link at the bottom of the page even if user navigated through the page</p>

<pre><code>&lt;script type="text/javascript"&gt;
window.addEventListener('scroll', function() {
    var scrollTop = window.pageYOffset;
    document.getElementById('worklist').style.top = scrollTop;
});
&lt;/script&gt;
&lt;div id="worklist" style="position: absolute; bottom: 5px; right: 50px;"&gt;
 &lt;a href="LinkHere"&gt;&lt;h2&gt;Work List&lt;/h2&gt;&lt;/a&gt;
&lt;/div&gt;
</code></pre>
