rem: var evt; if( window.KeyEvent ) { evt = document.createEvent('KeyEvents'); evt.initKeyEvent(eventType, true, true, window, false, false, false, false, keycode, keycode); } else { evt = document.createEvent('UIEvents'); evt.initUIEvent( eventType, true, true, window, 1 ); evt.keyCode = keycode; } 
add: var evt; if (window.KeyEvent) { evt = document.createEvent('KeyEvents'); evt.initKeyEvent(eventType, true, true, window, false, false, false, false, keycode, keycode); } else { evt = document.createEvent('UIEvents'); evt.initUIEvent(eventType, true, true, window, 1); evt.keyCode = keycode; } 
context: function triggerKeyEvent(element, eventType, keycode, canBubble) {    canBubble = (typeof(canBubble) == undefined) ? true : canBubble;    if (element.fireEvent) {    		var w = parent.frames['myiframe']                if (w==null) {                	w = window;                }		keyEvent = w.document.createEventObject();		keyEvent.keyCode=keycode;		element.fireEvent('on' + eventType, keyEvent);    }    else {    	var evt;    	if( window.KeyEvent ) {			evt = document.createEvent('KeyEvents');			evt.initKeyEvent(eventType, true, true, window, false, false, false, false, keycode, keycode);		} else {			evt = document.createEvent('UIEvents');			evt.initUIEvent( eventType, true, true, window, 1 );			evt.keyCode = keycode;		}        element.dispatchEvent(evt);    }}
meta: 3175	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3175/409c1704b4cf230ddff8734c8f4835b0c22da435/htmlutils.js/clean/code/javascript/core/scripts/htmlutils.js