I really don't know why these two functions - leave() & do() - don't run !
function leave()
{
var x = document.getElementById("x");
if(x.value == "")
{
alert("please enter your name");
x.focus();
}
}
function do()
{
var y = document.getElementById("y");
if (y.value = "enter your name here")
{
alert("enter your last name");
y.focus();
y.select();
}
}
here is my code: http://jsfiddle.net/BsHa2
thanks in advance