<font face="arial" size="2">Hello again...<br /><br />&nbsp;&nbsp;&nbsp;As far as I know, the select element does not&nbsp;have a value attribute.&nbsp; You'll have to get the selected value more like this:<br /><br />var oList = <font face="Times New Roman" size="3">document.sel_municipio.select_mun;</font><br />var selValue = oList<font face="Times New Roman" size="3">.options[oList.selectedIndex].value;<br /></font><br />Cheers,<br /><br />Peter<br /><br /></font><font face="Tahoma, Arial, Sans-Serif" size="2"><b>From</b>: Guilherme Cordeiro <a href="mailto:guilhermecordeiro@yahoo.com.br">guilhermecordeiro@yahoo.com.br</a><br /></font><br />So, I used the solution provided in those simple html<br />files. It worked perfectly.<br /><br />Now, I am trying to use it on some JSP files.<br /><br />The pop-up window has these elements:<br /><br /> <form name="sel_municipio">action="selecionaMunicipio.jsp" method="post"&gt;<br />...<br /> <table cellspacing="1" cellpadding="2" width="300">border="0"&gt;<br />...<br /> <tbody> <tr><br /> <td><br /><input type="image" name="finalizar">src="imagens/finalizar.gif" alt="Finalizar"<br />onclick="javascript:closeMunicipio();"&gt;&nbsp;<br /></td><br /></tr><br /><br />The opener window has these elements:<br /><br /><form name="atualizaaluno" action="editaDados.jsp">method="post"&gt;<br />...<br /></tbody></table> <table id="tag_100_1" cellspacing="1" name="table1">cellpadding="1" width="70%" align="center" border="0"&gt;<br />...<br /> <tbody> <tr><br /> <td><br /><input size="8" value="">gc.codMunNat %>" name=cd_mun_nat><br /><input size="18" value="">gc.nomeMunNat %>" name=nm_mun_nat><br /><input type="button" name="but_mun_nat">value="..." onclick="javascript:openMunicipio();"&gt;<br /></td><br /></tr><br /><br />The js file:<br /><br />var novaJanela;<br /><br />function openMunicipio()<br />{<br />novaJanela =<br />window.open("selecionaMunicipio.jsp",'novaJanela','scrollbars=no,width=500,height=300');<br />}<br /><br />function closeMunicipio()<br />{<br />self.opener.document.atualizaaluno.nm_mun_nat.value<br />= self.document.sel_municipio.select_mun.value;<br />self.close();<br />self.opener.novaJanela = null;<br />}<br />(...)<br /><br />So, when the user clicks on the "finalizar" image, it<br />was supposed to update the opener window with the<br />value selected in the dropdown. I don't know why it's<br />not working, even if I do like that simple example.<br />Anyone knows what can I do? Thanks again.<br /><br /></tbody></table></form>