# In the Unreal Four Engine, when using the "Web Browser" plugin, you need to make the web page transparent.

**URL:** <https://forums.unrealengine.com/t/in-the-unreal-four-engine-when-using-the-web-browser-plugin-you-need-to-make-the-web-page-transparent/456912>\
**Category:** Plugins\
**Tags:** unreal-engine, web-browser, Plugins, question\
**Created:** [October 14, 2019, 1:48pm UTC](https://forums.unrealengine.com/t/in-the-unreal-four-engine-when-using-the-web-browser-plugin-you-need-to-make-the-web-page-transparent/456912 "2019-10-14T13:48:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anonymous\_03aa9f40ef9811dd976a01ca6c339352](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_03aa9f40ef9811dd976a01ca6c339352](https://forums.unrealengine.com/u/Anonymous_03aa9f40ef9811dd976a01ca6c339352)\
**Post date:** [October 14, 2019, 1:48pm UTC](https://forums.unrealengine.com/t/in-the-unreal-four-engine-when-using-the-web-browser-plugin-you-need-to-make-the-web-page-transparent/456912/1 "2019-10-14T13:48:23Z")

</div>

In the Unreal Four engine, when using the “web browser” plugin, you need to make the webpage transparent. When I check “Support Transparency”, it is not transparent. I don’t understand. Is there a special color that will make it transparent or how? Can the web page be transparent? thank you very much

---

<div class="post-metadata">

**Author:** ![Invius](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Invius](https://forums.unrealengine.com/u/Invius)\
**Post date:** [September 3, 2020, 7:31pm UTC](https://forums.unrealengine.com/t/in-the-unreal-four-engine-when-using-the-web-browser-plugin-you-need-to-make-the-web-page-transparent/456912/2 "2020-09-03T19:31:04Z")

</div>

Same question here!!

---

<div class="post-metadata">

**Author:** ![Invius](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Invius](https://forums.unrealengine.com/u/Invius)\
**Post date:** [September 4, 2020, 4:23pm UTC](https://forums.unrealengine.com/t/in-the-unreal-four-engine-when-using-the-web-browser-plugin-you-need-to-make-the-web-page-transparent/456912/3 "2020-09-04T16:23:56Z")

</div>

Found the solution, run this js code after loading the page:  
document.getElementsByTagName(‘body’)[0].style.overflow = “hidden”;  
document.getElementsByTagName(‘body’)[0].style.background= ‘none’;

And use this code to set the transparency on the fly with the changes on the render opacity:  
document.getElementsByTagName(‘html’)[0].style.opacity = “0”;

 ![312427-ue.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/e/2/2e272a515c2eabf868cef3d0e26df63aa33009d3.png)

---

<div class="post-metadata">

**Author:** ![bvg\_x](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bvg\_x](https://forums.unrealengine.com/u/bvg_x)\
**Post date:** [April 28, 2023, 7:06am UTC](https://forums.unrealengine.com/t/in-the-unreal-four-engine-when-using-the-web-browser-plugin-you-need-to-make-the-web-page-transparent/456912/4 "2023-04-28T07:06:30Z")

</div>

Found the solution, run this js code after loading the page:  
document.getElementsByTagName(‘body’)[0].style.overflow = “hidden”;  
document.getElementsByTagName(‘body’)[0].style.background= ‘none’;

This js code paste in web site html or in unreal engine? Thanks

---

<div class="post-metadata">

**Author:** ![Shpz](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shpz/32/906490_2.png) [@Shpz](https://forums.unrealengine.com/u/Shpz)\
**Post date:** [March 7, 2024, 8:34am UTC](https://forums.unrealengine.com/t/in-the-unreal-four-engine-when-using-the-web-browser-plugin-you-need-to-make-the-web-page-transparent/456912/5 "2024-03-07T08:34:08Z")

</div>

Enable Supports Transparency in details of WebBrowser widget
