![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
28/10/2010, 14:42
|
![Avatar de bitbow](http://static.forosdelweb.com/customavatars/avatar143193_1.gif) | | | Fecha de Ingreso: julio-2006 Ubicación: Distrito Federal
Mensajes: 635
Antigüedad: 18 años, 7 meses Puntos: 34 | |
Respuesta: Boton que copia texto Saludos,
Encontre esto paseando por el foro, pero no me funciona para firefox.
<html>
<body>
<script language="Javascript">
<!--
var copytoclip=1
function SeleccionarTodo(theField) {
var tempval=eval("document."+theField)
tempval.focus()
tempval.select()
if (document.all&©toclip==1){
therange=tempval.createTextRange()
therange.execCommand("Copy")
}
}
//-->
</script>
<form name="formulario" style="margin:0;padding:0;">
<a href="javascript:SeleccionarTodo('formulario.cuadr o')">Seleccionar Código</a><br />
<textarea name="cuadro" cols="90" rows="5" onclick="this.select();">aqui todo el codigo a seleccionar :) </textarea>
</form>
</body>
</html>
Suerte.
__________________ El ego es el mayor enemigo de un hombre inteligente. |