How do i write this piece of code in jquery?
<p>How do i write this piece of javascript code in Jquery</p>

<pre><code>&lt;script&gt;
function init() {                

    alert('hi: ');
}

var previousOnload = window.onload;        
window.onload = function() { 
    if (previousOnload) { 
        previousOnload();
    }

    init();
}
&lt;/script&gt;
</code></pre>
