Help for this page

Select Code to Download


  1. or download this
    js('document')->getElementById('my_button')
        ->addEventListener('click', sub {
            js('window')->alert("You clicked the button!");
        } );
    
  2. or download this
    js('document.getElementById("my_button").addEventListener("click",func
    +tion(){...})');