Is this statement correct?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Don

    #1

    Is this statement correct?

    What is the correct construct for accessing "pageYOffse t" in another window?

    I've tried this, but it doesn't work:

    var mainPageYOffset ;
    //
    mainPageYOffset = parent.main.win dow.pageYOffset ;

    Thanks, Don

    ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
    http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
    ----= East and West-Coast Server Farms - Total Privacy via Encryption =----
  • Erwin Moller

    #2
    Re: Is this statement correct?

    Don wrote:
    [color=blue]
    > What is the correct construct for accessing "pageYOffse t" in another
    > window?
    >
    > I've tried this, but it doesn't work:
    >
    > var mainPageYOffset ;
    > //
    > mainPageYOffset = parent.main.win dow.pageYOffset ;
    >
    > Thanks, Don
    >[/color]

    Hi Don,

    That IS the correct way. :-)

    Maybe you make a mistake with parent.main?
    Do they exist?

    try to alert to be sure:
    alert (parent.main);

    should return a window object.

    Regards,
    Erwin Moller

    Comment

    • Erwin Moller

      #3
      Re: Is this statement correct?

      Don, one more thing: pageYOffset is ONLY navigator, not IE.

      Regards,
      Erwin Moller

      Comment

      Working...