トップ 差分 一覧 Farm ソース 検索 ヘルプ RSS ログイン

JavaScript

memo

 addEventListener( type, listener, useCapture )

type

  • [Event] change,error,focus,load,readystatechange,reset,resize,scroll,select,submit,unload
  • [MouseEvent] click,dblclick,mousedown,mousemove,mouseout,mousemove,mouseup
  • [KeyboardEvent] keydown,keypress,keyup

listeneruseCapture

  • true,false

 addEventListenerした無名関数をremoveする方法

element.addEventListener( 'click', function(){...}, false );
element.removeEventListener( 'click', arguments.callee, false );

 ログ

JavaScript側

function DEBUG_LOG( str )
{
  var out = document.getElementById( "debuglog" );
  if( out ) { out.value += str; }
}

html側

<textarea readonly cols="50" rows="5" id="debuglog"></textarea>

links

 HTML5

Last modified 2013-08-01 11:37:21