I have a web page that reads an INPUT value of the screen on a refresh.

When this value is 1 I set the refresh to 20 seconds.

What is the best way to have a button that can toggle this.