Can I change .bind to .on in the latest browsers?
<p>I have the following code:</p>

<pre><code>// Enable back/next buttons
$(window).bind('hashchange', function () {
    var hash = $.trim(window.location.hash || '');
    if (hash.length &gt; 1) {
        hash = hash.substring(1);
        var a = $('a[href="' + hash + '"]');
        if (a.length &gt; 0 &amp;&amp; !a.hasClass('current')) {
            a.click();
        }
    }
});
</code></pre>

<p>I think this needs to be changed as I understand the <code>.bind</code> is not supposed to be used any more. Now that I am using the latest jQuery can I change this to <code>.on</code> and will it still work in modern browsers?</p>
