# HTML5 Content: Control Browser From inside UE4

**URL:** <https://forums.unrealengine.com/t/html5-content-control-browser-from-inside-ue4/379859>\
**Category:** Platform & Builds\
**Tags:** browser, communication, HTML5, javascript, unreal-engine, CPP, question\
**Created:** [December 21, 2016, 2:04am UTC](https://forums.unrealengine.com/t/html5-content-control-browser-from-inside-ue4/379859 "2016-12-21T02:04:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![anonymous\_user\_f0fea7ad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f0fea7ad](https://forums.unrealengine.com/u/anonymous_user_f0fea7ad)\
**Post date:** [March 9, 2017, 2:01pm UTC](https://forums.unrealengine.com/t/html5-content-control-browser-from-inside-ue4/379859/2 "2017-03-09T14:01:02Z")

</div>

To be able to call Emscripten APIs from your own project, you should need to install Emscripten SDK manually, since it is already bundled to UE4, and no copying should be needed either. What you are trying looks fairly good. Try doing the following:

At the top of a .c/.cpp file:

```
#ifdef __EMSCRIPTEN__
#include <emscripten/emscripten.h>
#endif

```

and then at the site of use:

```
#ifdef __EMSCRIPTEN__
    emscripten_run_script("alert('hi')");
#endif

```

The ifdefs ensure that the UE4 compiler doesn’t get confused when it tries to build the code also for other platforms natively. Also try out the latest UE 4.15 if that would work better? If not, please post the full logs, it feels that the “symbol(s) not found” error would be a secondary error after some first error occurred. Was there anything else printed prior to that?

---

_[View the full topic](https://forums.unrealengine.com/t/html5-content-control-browser-from-inside-ue4/379859)._
