• Resolved joemunro

    (@joemunro)


    Hi Greg

    I’m using Auto iFrame at my site here: https://positivepowerandinfluence.co.uk/quiz/

    It works great so thanks for creating it. However, I’m trying to find a solution so that each subsequent page in the frame loads at the top. At the moment, on a smartphone, once you scroll, the next page will just load at the scroll point, resulting in what looks like a blank page to the user.

    In a normal iFrame, I think you could use something like onload=”scroll(0,0) but can you do this within your shortcode? Or is there another solution that you know of?

    Excuse my lack of technical ability and thanks very much for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Greg Ross

    (@gregross)

    iFrames are pretty limited in what they can do, especially when they’re cross domain. From an external site you can’t detect anything that happens in the iFrame from the parent page, so there’s no JavaScript or other way to known when the user has clicked inside of the iFrame to then scroll the parent window back to the top.

    This feature is included in advanced iframe: https://ww.wp.xz.cn/plugins/advanced-iframe/

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Auto scroll to top’ is closed to new replies.