check if object is a textbox – javascript August 28, 2023 by Tarik var isInputText = obj instanceof HTMLInputElement && obj.type == 'text';