JavaScript - Texto en popup

 
Vista:

Texto en popup

Publicado por Juanma (1 intervención) el 27/01/2011 13:45:26
Hola
Estoy intentando poner un campo de texto en un Popup pero no puedo seleccionar el texto y no se porque,¿alguna idea?
Aqui Pongo el codigo fuente acortado de lo que me pasa
Gracias


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title> Abrir PopUp</title>
</head>

<body>
<script>
var oPopup = window.createPopup();
function contextMenu1() {
oPopup.document.body.innerHTML = divCCM.innerHTML;
oPopup.show(300,200,175,300, document.body);
}
</script>

<DIV ID="divCCM" STYLE="display:none;">
<table bgcolor=silver border=1 cellpadding=0 align=center width=100%>

<tr> <td width="80%"> Campo 1:</td>
<td width="20%"> <input type=text value=" " name=campo_1 size=4 maxlength=2> </td> </tr>

<tr> <td width="80%"> Campo 2:</td>
<td width="20%">
<select name=campo_2 >
<option value=S > Sí </option>
<option value=N selected> No </option>
</select> </td> </tr>

<tr> <td colspan=2 align=center >
<INPUT TYPE=submit ID=btnCerrar value=Cancelar onClick="parent.oPopup.hide();">
</td> </tr>
</table>
</DIV>

<table border="0" align=center cellpadding="0" cellspacing="1" width="100%" class="enlace">
<tr>
<td nowrap align=left >
<a href=" " title="Hacer click para Abrir Popup" onClick='contextMenu1();return false;'> PopUP </a>
</td>
</tr>
</table>
</body>
</html>
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder