function isDOMElement(target) { return target.ownerDocument == document } alert( isDOMElement({ ownerDocument : document }) );