<!doctype html>
<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″>
<title>Eventos</title>
<script>
function tipo_flor(){
alert(“Pensamiento”);
}
function datipo_flor(){
var imagen=document.getElementsByTagName(“img”)[0];
imagen.addEventListener(“click”,tipo_flor(),false);
}
window.onload= datipo_flor;
</script>
</head>
<body>
<p >
</p>
</body>
</html>
No funciona el window.onload. No carga la función.
Se agradecen sus sabios consejos!!!!!
Juan Manuel Torres