Onbeforeunload not working in chrome

following piece of code is working fine in IE but not working in Chorme. I am trying to reload the parent window after close of popup window.

window.onbeforeunload = function (e) {

From server side same code working fine but i want to refresh parent page if user close page from browse close button.