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>