How to make a script for a button?

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!