I get this error when i try to call this function in Chrome 16.0.912.77 m:
function fade(e){
if(op > 0){
op -= 0.01;
document.getElementById(e).style.opacity = op;
window.setTimeout("fade(\""+e+")\"", 10);
}
}
It’s a simple function which fade a element on my page out.
I read that the error appears when i forgett a }-bracket, but i closed all..
Any ideas?
You have the closing quote and closing parentheses swapped.