![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
27/09/2009, 11:30
|
| | Fecha de Ingreso: septiembre-2009
Mensajes: 12
Antigüedad: 15 años, 4 meses Puntos: 0 | |
ayuda, pasar parametros string a funciones Mi problema es el manejo de la funciones con parametros string, como hago para pasarle parametros string a la funcion
aqui esta el codigo
</script>
<script type = text/javascript>
var ob = new Object();
var cosa = new Object();
ob = function(m){
alert(m);
}
function x(a){
alert(a);
}
</script>
<div>
<form>
<button onclick="x("hola");">presiona</button>
<button onclick="ob("hola");">Click Me</button>
</form>
</div>
me da este error uso el ide aptana
Error: syntax error File |