function checkPrevent() { var element = document.getElementById("sbc1"); if (element.checked) { alert("Form submission is being prevented by the behavior function"); return false; } } function handleBlur(event) { var blurElement = document.getElementById("it1"); var updateElement = document.getElementById("it3"); while (updateElement.firstChild != null) { updateElement.removeChild(updateElement.firstChild); } updateElement.appendChild(document.createTextNode(blurElement.value)); }