if ( document.body.onanimationend === null ) { alert( "support" ); } else { alert( "unsupport" ); } if ( document.body.onclick === null ) { alert( "support" ); } else { alert( "unsupport" ); }