Ver Mensaje Individual
  #9 (permalink)  
Antiguo 16/01/2010, 13:14
Darknessfeatsunny
 
Fecha de Ingreso: enero-2010
Mensajes: 11
Antigüedad: 14 años, 3 meses
Puntos: 0
Respuesta: Invocar funcion desde .js

hago un copy&paste de ambos archivos...:

index.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta name="author" content="TheDave" />

<title>prueba</title>
<link rel='stylesheet' type='text/css' href='estilo.css'/>
<script language="javascript" type="text/javascript" src="scripter.js"></script>

</head>

<body onload="mostrar();">




</body>
</html>


scripter.js:



function mostrar(){

alert("hola");
}