# UXP WebView support for loading local html content

**URL:** <https://forums.creativeclouddeveloper.com/t/uxp-webview-support-for-loading-local-html-content/5642>\
**Category:** Photoshop\
**Created:** [January 1, 2023, 12:40am UTC](https://forums.creativeclouddeveloper.com/t/uxp-webview-support-for-loading-local-html-content/5642 "2023-01-01T00:40:01Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![Timothy\_Bennett](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/timothy_bennett/32/1251_2.png) [@Timothy\_Bennett](https://forums.creativeclouddeveloper.com/u/Timothy_Bennett)\
**Post date:** [January 11, 2023, 8:12pm UTC](https://forums.creativeclouddeveloper.com/t/uxp-webview-support-for-loading-local-html-content/5642/13 "2023-01-11T20:12:38Z")

</div>

I load all my plugin HTML this way except for a basic layout that houses the loaded content.

```auto
const path = <path to an html file>;

const content = await fetch(path).text();

const container = document.querySelector("#<id of element in main html file in which to insert content>");

container.innerHTML = content;

```

---

_[View the full topic](https://forums.creativeclouddeveloper.com/t/uxp-webview-support-for-loading-local-html-content/5642)._
