I'm trying to implement an onfocus and onblur background-color changing. But, as per usual, it ain't jivin'.
Here's the function
and here's how it's being called
Any idea why it's saying document.getEle mentById(el) has no properties?
Here's the function
Code:
function bg(el, col)
{
document.getElementById(el).style.backgroundColor = col;
}
Code:
onblur="bg(this, '#000')"
Comment