input event test

by chad

HTML

<br><br>Test "oninput" event on the following element types:<br>

JavaScript

function test(elmType) {
    var elm = document.createElement(elmType);
    return elmType + ': ' + ('oninput' in elm);
}

document.body.innerHTML =
  document.body.innerHTML +
  '<br>' + test('div') +
  '<br>' + test('input') +
  '<br>' + test('textarea') + 
  '<br>' + test('select') + 
  '<br><br>' + navigator.userAgent;