Is it possible to run javascript on plugin deactivated?

This is really a javascript question, but there is nothing preventing you from doing a regular confirm with AJAX.

For example:
https://stackoverflow.com/questions/8680491/javascript-confirm-with-php-function-afterward

tech