Title: Auto Select iFrame When Scrolling ?
Last modified: November 6, 2016

---

# Auto Select iFrame When Scrolling ?

 *  Resolved [Glennf](https://wordpress.org/support/users/glennf/)
 * (@glennf)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/auto-select-iframe-when-scrolling/)
 * When a blog page opens with an iFrame I want the iFrame to have focus so when
   the user scrolls down the page doesn’t scroll but the iFrame scrolls instead.
 * Is there a parameter to use to set that in the free version?

Viewing 1 replies (of 1 total)

 *  Plugin Author [mdempfle](https://wordpress.org/support/users/mdempfle/)
 * (@mdempfle)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/auto-select-iframe-when-scrolling/#post-8407148)
 * You can use the onload event setting. There you can add some Javascript that 
   sets the focus to the iframe.
    Are you on the same domain? Because otherwise 
   you cannot access the needed element.
 * I recommend to create a small file you include with the plugin and call this 
   function than with the onload event.
 * Best, Michael

Viewing 1 replies (of 1 total)

The topic ‘Auto Select iFrame When Scrolling ?’ is closed to new replies.

 * ![](https://ps.w.org/advanced-iframe/assets/icon-128x128.png?rev=1028488)
 * [Advanced iFrame](https://wordpress.org/plugins/advanced-iframe/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-iframe/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-iframe/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-iframe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-iframe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-iframe/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [mdempfle](https://wordpress.org/support/users/mdempfle/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/auto-select-iframe-when-scrolling/#post-8407148)
 * Status: resolved