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.