Ver Mensaje Individual
  #4 (permalink)  
Antiguo 04/11/2012, 09:52
Avatar de IsaBelM
IsaBelM
Colaborador
 
Fecha de Ingreso: junio-2008
Mensajes: 5.032
Antigüedad: 15 años, 10 meses
Puntos: 1012
Respuesta: Se puede pasar variables/return de funciones entre archivos src de un html

otra interpretación. se refiere a un intento de algo moludar js

js1.js
Cita:
function ID(id) {
return document.getElementById(id);
}
js2.js
Cita:
function alerta() {
alert(ID('control').value);
}
Cita:
<!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">
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="js1.js"></script>
<script type="text/javascript" src="js2.js"></script>
</head>
<body>
<form>
<input type="text" value="funciona" id="control" onclick="alerta()" />
</form>
</body>
</html>
__________________
if(ViolenciaDeGénero) {alert('MUJER ASESINADA');}