How to submit a form on change?

The question is specifically about the Captive Network Assistant. I have tried using vanilla JavaScript, <form action=""> <select name="test" onchange="this.form.submit()"> ...