¿Cómo cambio el color de fondo del cuadro de texto cuando onfocus?
Probé este código pero no funciona ... cuando en el cuadro de texto enfocado muestra un error
function ChangeBgColor(obj, evt)
{
if(evt.type=="focus")
style.background ="lightgrey";
else if(evt.type=="blur")
{
style.background="white";
}
}