hi all,
the code below has an error message and it says that the code in bold is null or not an object, now this code is within a .
js file and calls those variables from a html page outside of the .
js file:
var firstname = document.recruit.firstname.value;
var age = document.recruit.age.value;
var timeplayingcss = document.recruit.timecss.value;
function validateform(){
if (firstname == "" || firstname == null && age <= "18" ||age == "" || age == null && timeplayingcss == "" || timeplayingcss == null) {
alert("Excuse me " + document.recruit.firstname.value + " but you've left a few fields blank");
}
else
{
window.close();
window.open("validated.html","","width=200,height= 200");
}
}
function close_bringup(){
var name = document.recruit.firstname.value;
window.close;
window.open("index2.html");
}
thanks to anyone who can help