50projectsIn50days – Day 11: Event Keycode
The purpose of the project is to understand the event “key”. It is supossed you press a key and see in the browser the key you’ve alredy pressed the key code, and the name ol the event.
The html is straightforward. Inside a div named “insert” we have the “key” class
<div id="insert"> <div class="key">Press any key to get the keyCode</div> </div>
All this information is added inserted to the innerHTML using the insert function. Quite straigthfortwatd.