title: How to listen the Alert box of WebPage clicked in Chrome extension
body: <p>I am now developing a Chrome extension that can record the webpage's alert or confirm box clicked.
  What I want is when the alert box was clicked, the extension can capture the event.</p>
  
  <p>I can not find related document about it, so turn here for help.</p>