0

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.

I can not find related document about it, so turn here for help.

zhuxy
  • 117
  • 9

1 Answers1

0

There are two methods:

  1. override those functions inside a page context script
  2. use chrome.debugger API with Page.javascriptDialogClosed event listener
wOxxOm
  • 65,848
  • 11
  • 132
  • 136