Window.opener question.....

Posted on 2006-03-22
Last Modified: 2010-04-17
I have a form (form1) which calls a popupwindow(form2).  I want the popupwindow (form2) to call the Page_Load load event of Form1.

Is this possible...maybe with window.opener?

Can someone please provide me with an example.  Currently I have.............

 window.opener.document.forms["<%= strFormName %>"].submit();
Question by:jm76
    LVL 8

    Expert Comment

    I'm not sure what you are trying to do?
    LVL 6

    Accepted Solution

    onload event will only fire once -- after the page has loaded. What you can do instead is to call the actual function that is assigned to onload event by calling window.opener.function_name().

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    sum13 challenge 24 69
    FizzBuzz challenge 9 65
    userCompare  challenge 3 55
    drawing animated level bar based on numbers 3 47
    Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
    Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now