View Full Version : pass value from parent to popup

12-29-2006, 03:25 PM
hi ,
I have a dropdownlist and buttons as such Add,Edit and Delete in a page, when i click on the button it opens a popup window.
i case of Add button clicked i dont need any value from dropdown but when edit or delete button is passed i need to pass the selected value of dropdown list from the parent to popup form. and even in popup window i need which button has been clicked to call the corresponding functions.

How do i do it ?
help me out in solving this.


12-29-2006, 03:44 PM
Use the opener keyword...

Inside the pop-up's code:

var listValue = opener.document.getElementById('myDropDownList').value;

See this tutorial (http://www.webreference.com/js/tutorial1/opener.html) on using this...