Popup window - passing one parameter to popup window

Hello good folks,

Here is my very simple situation.

I have a popup window. I want this window to be launched from two or three different .aspx pages.Depending on the from page where the popup window was launched, I want to do different things on the popup window. So basically same popup window from different pages should be able to be launched.

Here is the code so far that works successfully.

<a onclick="OpenWindow_HistoricalRuns();"

           style="font-size: small; font-weight: bold; text-decoration: underline; color: #333300;">Show Current</a>


<script type="text/javascript" language="javascript">

             function OpenWindow_HistoricalRuns() {


                 var windowIncsimHistRuns = window.open('PopupWindow.aspx', 'popup', 'width=350,height=425,scrollbars=0');

                 windowIncsimHistRuns.moveTo(500, 300);

             }
         

In the page_load event of the ‘PopupWindow.aspx’ (popup page), based on from page (where the popup page was launched from), I will do stuff differently. For that to happen, If I can pass a parameter say like the name of from page, that would be great.

Any articles or suggestions on how to do this would be great.
thanks

Anyone …

See are using .NET. Just pass a parameter in the URL. For example, PopupWindow.aspx?needtopassthis=needtopassthisvalue…On Page_Load create a variable and use the “Response” and “QueryString” objects (search it). I think that is what you are talking about, if I’m wrong let me know.