# Is it possible to extract Active DOM from SWebBrowser

**URL:** <https://forums.unrealengine.com/t/is-it-possible-to-extract-active-dom-from-swebbrowser/486557>\
**Category:** C++\
**Tags:** source, webbrowser, javascript, unreal-engine, question, CPP\
**Created:** [July 24, 2021, 4:03am UTC](https://forums.unrealengine.com/t/is-it-possible-to-extract-active-dom-from-swebbrowser/486557 "2021-07-24T04:03:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guardianl67](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Guardianl67](https://forums.unrealengine.com/u/Guardianl67)\
**Post date:** [July 24, 2021, 4:03am UTC](https://forums.unrealengine.com/t/is-it-possible-to-extract-active-dom-from-swebbrowser/486557/1 "2021-07-24T04:03:25Z")

</div>

Hello, I am working on a web-based application, and for all rendering I have been using the SWebBrowser module. Within this module it has a getSource() function which I used only to discover it prints the static pre-rendered DOM rather than the dynamically altered DOM. I wanted to know if there is any way to get it to print what the current DOM looks like at a given point. If there is not, is there any way to get the DOM to communicate with my C++? I ask this because I noted I can execute javascript in the SWebBrowser from C++, and if I could send a message back, I could just have the javascript get the active DOM for me (With a js command like document.getElementsByTagName(‘body’)[0].innerHTML). Sorry for the long post, and thanks in advance for any help that you guys can provide!
