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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)