diff --git a/src/DOM.js b/src/DOM.js
index <HASH>..<HASH> 100644
--- a/src/DOM.js
+++ b/src/DOM.js
@@ -1820,6 +1820,7 @@ class HTMLIFrameElement extends HTMLSrcableElement {
     
     this.d = null;
     this.browser = null;
+    this.onconsole = null;
     this.xrOffset = {
       position: new Float32Array(3),
       rotation: new Float32Array(4),
@@ -1852,6 +1853,9 @@ class HTMLIFrameElement extends HTMLSrcableElement {
                   done = true;
                   err = _makeLoadError();
                 };
+                this.browser.onconsole = (message, source, line) => {
+                  this.onconsole && this.onconsole(message, source, line);
+                };
                 await new Promise((accept, reject) => {
                   if (!done) {
                     this.browser.onloadend = () => {
Hook in CEF onconsole handling in DOM.js