Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript scroll parent window to top before new popup opened

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #46343
    gowda24
    Participant

    I have a popup, after viewing the popup content, i scroll down to the bottom of the page and click the next button. On clicking next button, the popup closes and opens new popup.

    But need to scroll up to view the popup.

    How can we scroll the parent window to top before new popup opened.

    #142483
    gowda24
    Participant

    Hi,
    I have found a solution ..
    Trigger the parent window first and then open the popup.
    window.parent.parent.scrollTo(0,0);
    This scrolls the parent window to top and then open the new popup.

    Any other fixes are appreciated.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.