Hola
Para el caso que no sea externo yo uso
Código javascript
:
Ver original<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="http-equiv" content="Content-type: text/html; charset=UTF-8"/>
<script type="text/javascript">
function funcion() {
var estado = document.readyState;
if (estado == 'complete' || estado == 4) { // IE o OPERA
alert("completada")
document.getElementById("elDiv").style.color = '#FF0000';
} else {
if (document.addEventListener) { // FF
alert("completada")
document.getElementById("elDiv").style.color = '#FF0000';
}
}
}
</script>
</head>
<body onload = "funcion()">
<div id="elDiv" style="color:#C9C9C9;">Este texto era de color gris, pero al estar la página totalmente carga, ahora es rojo</div>
</body>
</html>
Suerte