Difference between revisions of "Template:Toronto/js/test-script"

(Created page with "alert("testing");")
 
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
alert("testing");
+
'use strict'
 +
 
 +
document.getElementById('testbutton').addEventListener('click', clickHandler)
 +
 
 +
function clickHandler() {
 +
  alert('You clicked the button! Now go do something with your life.')
 +
}

Latest revision as of 23:03, 30 October 2017

'use strict'

document.getElementById('testbutton').addEventListener('click', clickHandler)

function clickHandler() {

 alert('You clicked the button! Now go do something with your life.')

}