typeof node.onmousedown === 'object'
var obj = {}; var fun = function () {}; alert(["obj " + typeof obj, "fun " + typeof fun].join("\n"));