Una cosita .... tengo este codigo
Código:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<script>
function x(){
document.getElementById('capa').style.backgroundColor = "#ffcc00";
}
x();
</script>
</head>
<body>
<div id="capa" style="border: 1px solid #c0c0c0">
capa
</div>
</body>
</html>
Y nose por que demonios el document.getElementById() no funciona

alguien sabe por que?