Learn Create Your Own Split Screen

Next Page

We can even do things as shown in the "Wider" and "Narrower" buttons in this example:
<button class=MySideButton onclick="SetWidth(ctx.lineWidth-1)"> Narrower </button>

The important thought to get in your mind is whatever you put between the quotes in the onclick attribute will be executed just as though it is Javascript code located within a <script> tag.