# Is accessing the DOM from within a WebView possible?

**URL:** <https://forums.fusetools.com/t/is-accessing-the-dom-from-within-a-webview-possible/779>\
**Category:** General\
**Created:** [November 22, 2016, 8:46pm UTC](https://forums.fusetools.com/t/is-accessing-the-dom-from-within-a-webview-possible/779 "2016-11-22T20:46:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![remnnis\_scion](https://avatars.discourse-cdn.com/v4/letter/r/a9a28c/32.png) [@remnnis\_scion](https://forums.fusetools.com/u/remnnis_scion)\
**Post date:** [November 22, 2016, 8:46pm UTC](https://forums.fusetools.com/t/is-accessing-the-dom-from-within-a-webview-possible/779/1 "2016-11-22T20:46:46Z")

</div>

Hey guys.

I was wondering if it is possible to get access elements within a loaded web page from within the webview component, e.g. document.getElementById(‘picture’).height;

In the webview documentation its stipulated that javascript execution is limited; properties such as document.location.href and document.title are possible nevertheless.

I ask this because I am trying to resize the webview component according to the height of the loaded page content. So if it is possible to use document.getElementById(‘some-element’).height from within the webview that would be awesome…

Thank you in advance for your Guidance

---

<div class="post-metadata">

**Author:** ![Andreas\_Ronning](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/andreas_ronning/32/303_2.png) [@Andreas\_Ronning](https://forums.fusetools.com/u/Andreas_Ronning)\
**Post date:** [November 23, 2016, 6:04am UTC](https://forums.fusetools.com/t/is-accessing-the-dom-from-within-a-webview-possible/779/2 "2016-11-23T06:04:42Z")

</div>

I don’t see why this wouldn’t be reasonably simple using JS evaluation. If you can access the data you want with a JS function, you can pull that data out into Fuse.
