Adding deluge in a pop up window of an alert function

Adding deluge in a pop up window of an alert function

I have a form with a decision box ('Test')

When I click this box then it shows me an alert pop up like the following:

if (Test)
{
      alert "Something";
}

Is it possible when the alert shows me the pop up window, then by clicking the OK of the pop up  to automatically untick or deselect the decision box?

I think that it is not possible but I would like your opinions.