Avoiding Popup/New Window Still knowing the opener window
<p>I have a Dynamically generated Page A. This Page A has Input text box and a link next to it (say Color). When I click on the Color, I am calling a JavaScript function to call a new pop up. The New pop will will have a list of colors in table cells. When I click on a particular color, I again call a java script in which I use window.opener and fill the selected color value back to my input box of the Page A.</p>

<p>Now my requirement is to avoid Popup or opening it in new window/tab. </p>

<p>So, I changed the pop up opening to _self. Now, when I click on Color link, it opens the list of colors in the same page. No problem. </p>

<p>BUT what I do not know is how will I make the selected color populate back to the Page A? I can not use window.opener in this case because I am opening the pop up in the same page so the window.opener will become null and not know that Page A was the opener. How can handle this?</p>
