Example 18-1: The JavaScript in an external file named print…
Example 18-1: The JavaScript in an external file named printPage.jsvar $ = function (id) { return document.getElementById(id);}var printPage = function() { window.print(); }window.onload = function() { $(“printButton”).onclick = printPage; (Refer to example 18-1) Which of the three JavaScript functions are event handlers?
Read Details