How to focus a popup window from another aspx page

asp.net United States
  • 17 years ago

    How to focus a popup window from another aspx page?


    Hi .
    I have 3 aspx pages(used C#).
    A link in the first one creates a popup window.
    A link in the popup window opens a page with 2 frames in it, top and bottom.
    Now, I have a link in bottom frame of this page, which, when clicked , should give focus to the existing popup window.


    When creating the popup window, I used a reference to it like...
    newwin=window.open(...)
    I tried to pass this newwin as QUERYSTRING to all other ASPX pages.
    And in the last page, i.e.,bottom frame page, I used the code like..
    popup.focus() ---------- *
    where popup is set to querysttring variable.... Request.QueryString("popupwindowreference")


    The above procedure didnt work. it thows an error like...popup is undefined at line *


    Can anyone figure out what the problem is?
    Any help is grately appreciated!


    Thanks you.
    -Srivalli.

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“My definition of an expert in any field is a person who knows enough about what's really going on to be scared.” - P. J. Plauger