Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js add event listener

function eventHandler(event) {
  if (event.type == 'fullscreenchange') {
    /* gestire un interruttore a schermo intero */
  } else /* fullscreenerror */ {
    /* gestire un errore di commutazione a schermo intero */
  }
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #js #add #event #listener
ADD COMMENT
Topic
Name
7+8 =