![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
11/12/2007, 14:58
|
| | Fecha de Ingreso: diciembre-2007
Mensajes: 1
Antigüedad: 17 años, 2 meses Puntos: 0 | |
Javascript getElementById Estimados, el siguiente codigo me funciona perfecto en IE, pero al ejecutarlo en firefox...cuakkk....no funka....y reclama por Error:
frm has no properties
alguien tiene alguna idea??...gracias...
<script>
var labelForm="";
function asignaLabel(label)
{
labelForm=label;
}
function enviarSistema(action,target)
{
var frm=document.getElementById(labelForm);
frm.action=action;
frm.target=target;
frm.submit();
}
</script>
el html es..
<form name="<%=label %>" method="post" action="" target="">
<script>asignaLabel('<%=label %>');</script>
<a href="#" onclick="javascript:enviarSistema('http://xxxx.xx','_blank')" >XXXXX</a> |