<script language="javascript"> var optval = "10"; var opttext = "lalala"; var xtipo = "C"; opener.document.frmLancamento.selhistban.options[opener.document.frmLancamento.selhistban.options.length] = new Option (opttext, optval, true); if (xtipo == "C"){ opener.document.frmLancamento.tipo_credito.checked = true; opener.document.frmLancamento.tipo_debito.checked = false; }else{ opener.document.frmLancamento.tipo_debito.checked = true; opener.document.frmLancamento.tipo_credito.checked = false; } window.close(); </script>
Erro:
"The server threw an exception"
Bom, esse erro aí, só se dá no IE, não dá no FF, no FF funciona perfeito.. acho que o erro aponta pra linha onde adiciona um novo Option..