removeChild is not a function
问题 window.onload = initPage; var firstname = false; var lastname = false; function initPage() { addEventHandler(document.getElementById("firstname"), "blur", verifyFirst); addEventHandler(document.getElementById("lastname"), "blur", verifyLast); addEventHandler(document.getElementById("submit"), "click", showName); } function verifyFirst(e) { var me = getActivatedObject(e); if (me.value === "") { me.className = "error"; me.focus(); me.select(); return; } else { me.className = ""; firstname =