I need to have all javaScript external and I have window.onload = function
window.onload = function(){//onload allows external onclick
document.getElementById('submit').onclick = function(evt) {
calcOrder();//validation of input(s)
} }//end window.onload = function()
this works when the submit button is clicked in the form, My question is I have an onBlur event also in the form how can I combine it into the window.onload = function ? Or can I?
<p><input name="fname" id="fname" type="text" size="20" maxlength ="15" placeholder="First Name" onblur="validateFirstname();"/> <span id ="fnameprompt"></span>
<br>First name - Must be between 2 to 15 Characters </p>