javascript confirm dialog box before close browser window
<p>i need to display confirm dialog box before close browser window using javascript or PHP. the confirm box should come when i click the close button of browser. other wise don't display dialog. please help me any.</p>

<p>thanks</p>
