Title: iframe support?
Last modified: January 29, 2018

---

# iframe support?

 *  Resolved [arr0w](https://wordpress.org/support/users/arr0w/)
 * (@arr0w)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/iframe-support/)
 * Hi!
 * I’m using this plugin on a page with several iframes and whenever the mouse is
   used within an iframe, my specified countown starts and I get locked out after
   x minutes.
    Is it possible to somehow get mouseclicks and keypresses from an 
   iframe?
 * Thanks
 * /Jacob

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

 *  Plugin Author [Deepen Bajracharya](https://wordpress.org/support/users/j_3rk/)
 * (@j_3rk)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/iframe-support/#post-9918616)
 * Hi Jacob,
 * Will check this and let you know on it.
 * Thanks
 *  Thread Starter [arr0w](https://wordpress.org/support/users/arr0w/)
 * (@arr0w)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/iframe-support/#post-9981912)
 * Hi Deepen
 * Have got time to look into this?
 * /Jacob
 *  Plugin Author [Deepen Bajracharya](https://wordpress.org/support/users/j_3rk/)
 * (@j_3rk)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/iframe-support/#post-9982280)
 * Hello Jacob,
 * Do you mean stop logout counter when you hover inside an iframe ? because only
   having iframes in a page does not seem to stop the behaviour of the plugin and
   seems to work fine here. Thanks.
 *  Thread Starter [arr0w](https://wordpress.org/support/users/arr0w/)
 * (@arr0w)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/iframe-support/#post-9983368)
 * Hi Deepen
 * Could you please try this:
    – Set the timeout to 1 minuter for your user. – Create
   an iframe to af external website – eg. google.com – Login as the user, select
   the iframe and use it without the mouse leaving until you see the “Last active”
   message in your log.
 * Can you recreate this?
 * I’m just asking if its possible to track mouse-movement and keypresses inside
   an iframe, because the plugin thinks I am inactive whenever an iframe is in use…
 * Thanks
 * /Jacob
 *  Plugin Author [Deepen Bajracharya](https://wordpress.org/support/users/j_3rk/)
 * (@j_3rk)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/iframe-support/#post-9987099)
 * Hi Jacob,
 * I saw the problem. Seems when you are in iframe view jquery is not tracking movements.
   Checking on this for solutions. Thanks.
 *  Plugin Author [Deepen Bajracharya](https://wordpress.org/support/users/j_3rk/)
 * (@j_3rk)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/iframe-support/#post-10162381)
 * Hi Jacob,
 * Sorry for late reply and testing. Here’s a quick solution and only possible solution.
   If you know code please try pasting below code in inactive-logout/assets/js/inactive-
   logout.js. Put below after line 65 i.e inside “POST” function.
 * var elem = document.activeElement;
    //IF ACTIVE ELEMENT is clicked inside an 
   iframe then track this following and reset timer again. So, do not logout user
   from here. if(elem && elem.tagName == ‘IFRAME’){ ina__resetTimer(); console.log(“
   You are browsing inside an IFRAME!”); } else { console.log(“Last Active on: ”
   + Date.now()); }
 *  Plugin Author [Deepen Bajracharya](https://wordpress.org/support/users/j_3rk/)
 * (@j_3rk)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/iframe-support/#post-10162395)
 * Please note that this will only work when you have clicked inside an iframe and
   this is the only solution. Please try it out in yours and lemme know if it works.
   I’ll push this into next update.
 * Thanks
 *  Thread Starter [arr0w](https://wordpress.org/support/users/arr0w/)
 * (@arr0w)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/iframe-support/#post-10177216)
 * Hello Deepen
 * I have tested your suggestion and it works very well.
    It is not really what 
   I intended because the user can be inactive after clicking inside an iframe…
 * But thanks anyways
 * /Jacob
 *  Plugin Author [Deepen Bajracharya](https://wordpress.org/support/users/j_3rk/)
 * (@j_3rk)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/iframe-support/#post-10267596)
 * Hi Jacob,
 * I don’t know whether exactly it points to your fix but i have added iframe to
   latest version. So, closing this thread. Thanks.
 * Please open up another one if you have an issue.

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

The topic ‘iframe support?’ is closed to new replies.

 * ![](https://ps.w.org/inactive-logout/assets/icon-256x256.png?rev=3133765)
 * [Inactive Logout](https://wordpress.org/plugins/inactive-logout/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/inactive-logout/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/inactive-logout/)
 * [Active Topics](https://wordpress.org/support/plugin/inactive-logout/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/inactive-logout/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/inactive-logout/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [Deepen Bajracharya](https://wordpress.org/support/users/j_3rk/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/iframe-support/#post-10267596)
 * Status: resolved