Title: Javascript bug with iframe
Last modified: September 2, 2021

---

# Javascript bug with iframe

 *  [mattf10](https://wordpress.org/support/users/mattf10/)
 * (@mattf10)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/javascript-bug-with-iframe/)
 * I have a page with an iframe: [https://demos.port80.services/essency/troubleshooting-guide-e55r/](https://demos.port80.services/essency/troubleshooting-guide-e55r/)
 * The plugin is throwing a javascript error, which caused the mobile menu to break
   on phones. Here is the error:
 *     ```
       Uncaught TypeError: Cannot read properties of null (reading 'classList')
           at Object.init (front.min.js?ver=2.1.3:1)
           at front.min.js?ver=2.1.3:1
       init @ front.min.js?ver=2.1.3:1
       (anonymous) @ front.min.js?ver=2.1.3:1
       load (async)
       (anonymous) @ front.min.js?ver=2.1.3:1
       (anonymous) @ front.min.js?ver=2.1.3:1
       ```
   
 * If I remove the iframe, the problem goes away.
 * The content loaded in the iframe is static html, and no javascript is loaded.
 * Please fix your code so that it works on pages with iframes. Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjavascript-bug-with-iframe%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘Javascript bug with iframe’ is closed to new replies.

 * ![](https://ps.w.org/cookie-notice/assets/icon-256x256.png?rev=3549327)
 * [Compliance by Hu-manity.co](https://wordpress.org/plugins/cookie-notice/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cookie-notice/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cookie-notice/)
 * [Active Topics](https://wordpress.org/support/plugin/cookie-notice/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookie-notice/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookie-notice/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [mattf10](https://wordpress.org/support/users/mattf10/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/javascript-bug-with-iframe/)
 * Status: not resolved