JavaScript onclick() text size increase with EventListener
问题 I am trying to implement the following to increase text size based on button click. I am trying to use one handler for this. The idea is to increase/decrease the fontsize for the text in "demo" area by +/-5 px. But I am not getting the desired result. <html> <body> <p>Change font size</p> <div id="main_area1"> <button id="button1" value="larger" type="button" onclick="changeFontSize(this)">Larger</button> </div> <div id="main_area2"> <button id="button2" vale="smaller" type="button" onclick=