title: onbeforeunload in Opera
body: <p>I'm using the code that netadictos posted to the question <a href="https://stackoverflow.com/questions/333665/">here</a>.  All I want to do is to display a warning when a user is navigating away from or closing a window/tab.</p>
  
  <p>The code that netadictos posted seems to work fine in IE7, FF 3.0.5, Safari 3.2.1, and Chrome but it doesn't work in Opera v9.63.  Does anyone know of way of doing the same thing in Opera?</p>
  
  <p>Thx, Trev</p>