W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Unicode key code of the key that triggered the onkeydown or While using W3Schools, you agree to have read and accepted our. The steps to create the function are as follows: Check if the number is decimal. While using W3Schools, you agree to have read and accepted our, A page has started printing, or if the print dialogue box has been closed, Before a document is about to be unloaded, The browser can start playing the media (has buffered enough to begin), The browser can play through the media without stopping for buffering, The content of a form element has changed, An element is right-clicked to open a context menu, A dragged element is over the drop target, A dragged element is dropped on the target, A media has reach the end ("thanks for listening"), An error occurs while loading an external file, An element is displayed in fullscreen mode, An element can not be displayed in fullscreen mode, There has been changes to the anchor part of a URL, Meta data (like dimensions and duration) are loaded, The browser starts looking for the specified media, A message is received through the event source, The mouse button is pressed over an element, A user releases a mouse button over an element, A connection with the event source is opened, The media has been started or is no longer paused, The media is playing after having been paused or stopped for buffering, The playing speed of the media is changed, A