Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

bring up pop-up window, and pass info back to 1st page

Status
Not open for further replies.

wrbodine

Programmer
Aug 24, 2000
302
US
Hi,

We're wanting to bring up an pop-up when the user clicks on a hyperlink, and have the user select an item on the pop-up screen. Then, once they select this item and click on a button (or a link or whatever) it would close this window and, on the original screen, the info from this pop-up could be retrieved. How would we go about doing this?

Many thanks,
Ray
 
<script language=javascript>
function updatemainpage(){
self.opener.mainform.textfieldname.value=document.myform.myselect.value
self.close()
}
</script>
<form name=myform>
<input type=text name=test>
<select name=myselect>
<option value=1>1</option>
<option value=2>2</option>
<option value=3>3</option>
</select>
<input type=button value=Click onClick=updatemainpage()>
</form>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top