if(this.opener) means what?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Revathi Balakrishnan
    New Member
    • Jun 2008
    • 40

    if(this.opener) means what?

    Hi All
    I am very new to javascript world. But i need to debug a javascript code. i wanted to know what does the below code mean?

    if(this.opener)
    {

    }

    Please help me. i am in a very urgent need. Expecting your Advices. Thanks in Advance
  • hsriat
    Recognized Expert Top Contributor
    • Jan 2008
    • 1653

    #2
    this when directly (not inside a wrapper function or an HTML tag) written in the script means window reference.
    And opener means, the other window from which this window has been opened.

    So if (this.opener) means, if the parent window exists.

    Have a look at this tutorial.

    Comment

    • Revathi Balakrishnan
      New Member
      • Jun 2008
      • 40

      #3
      Thanks a lot

      Really your answer helped me a lot.

      Comment

      • hsriat
        Recognized Expert Top Contributor
        • Jan 2008
        • 1653

        #4
        You are welcome

        Comment

        Working...