# Web Browser

**URL:** <https://forum.juce.com/t/web-browser/33491>\
**Category:** General JUCE discussion\
**Created:** [May 20, 2019, 8:12pm UTC](https://forum.juce.com/t/web-browser/33491 "2019-05-20T20:12:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![TypeWrit3r](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/typewrit3r/32/3993_2.png) [@TypeWrit3r](https://forum.juce.com/u/TypeWrit3r)\
**Post date:** [May 20, 2019, 8:12pm UTC](https://forum.juce.com/t/web-browser/33491/1 "2019-05-20T20:12:06Z")

</div>

Does anybody else get multiple script errors when loading a page with the JUCE Web Broswer component. Does anybody know how to fix this error?

---

<div class="post-metadata">

**Author:** ![t0m](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/t0m/32/16413_2.png) [@t0m](https://forum.juce.com/u/t0m)\
**Post date:** [May 21, 2019, 12:06pm UTC](https://forum.juce.com/t/web-browser/33491/2 "2019-05-21T12:06:21Z")

</div>

Are you on Windows?

> [@Questions about Webbrowser Component](https://forum.juce.com/t/questions-about-webbrowser-component/23941):
>
> I’m checking out the Webbrowser component and I’ve noticed some sites seem not accessable. One example is [http://www.kvraudio.com/](http://www.kvraudio.com/) When I type that in the adress bar I get “The website declined to show this webpage”. (Accessing from my usual browsers FF, IE works fine) Screengrab: [http://i.imgur.com/t6iXZZc.gifv](http://i.imgur.com/t6iXZZc.gifv) Why is that ? And another one: The doc says "The browser itself will be platform-dependent. On the Mac, probably Safari, on Windows, probably IE. " Is there a way to control thi…

---

<div class="post-metadata">

**Author:** ![jrlanglois](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jrlanglois/32/21372_2.png) [@jrlanglois](https://forum.juce.com/u/jrlanglois)\
**Post date:** [May 21, 2019, 2:56pm UTC](https://forum.juce.com/t/web-browser/33491/3 "2019-05-21T14:56:32Z")

</div>

Tom’s Q is absolutely essential to answer: Windows’ embedded browser is IE based, which has the track record of being… poopy… all around, including its JS implementation.

Might be able to disable the notifications though. You would have to hack the underlying JUCE native browser wrapping code by adding `browser->put_Silent (VARIANT_TRUE);` (I think! Haven’t tried…)

---

<div class="post-metadata">

**Author:** ![TypeWrit3r](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/typewrit3r/32/3993_2.png) [@TypeWrit3r](https://forum.juce.com/u/TypeWrit3r)\
**Post date:** [May 22, 2019, 4:58pm UTC](https://forum.juce.com/t/web-browser/33491/4 "2019-05-22T16:58:42Z")

</div>

I am using windows, so there’s no way to fix this by including the JavaScript library in the source files?

To specify I get specific command errors, as in the JSON line 44 error not valid command. Console line 0 not valid command.

> **[DACBC04-F-2-D92-4-AE5-9899-FE8-B811-D0-DBC](https://ibb.co/Bsk89sx)**
>
> Image DACBC04-F-2-D92-4-AE5-9899-FE8-B811-D0-DBC hosted in imgbb.com

  

> **[37613776-906-E-44-BF-960-A-5-BCF38-E18-AFD](https://ibb.co/kmG3hjR)**
>
> Image 37613776-906-E-44-BF-960-A-5-BCF38-E18-AFD hosted in imgbb.com

  

> **[A5988-C2-C-5043-4-DFA-A8-FF-090769979-BCA](https://ibb.co/HtXgfZR)**
>
> Image A5988-C2-C-5043-4-DFA-A8-FF-090769979-BCA hosted in imgbb.com

  

> **[26-EC0-E0-C-A452-485-A-B0-F9-B36-D43-F9-AE6-B](https://ibb.co/YPgbwyD)**
>
> Image 26-EC0-E0-C-A452-485-A-B0-F9-B36-D43-F9-AE6-B hosted in imgbb.com

  

> **[0-A79-DFDA-E948-4-B35-A40-B-22-FD9-A9-E633-F](https://ibb.co/VjCVXrC)**
>
> Image 0-A79-DFDA-E948-4-B35-A40-B-22-FD9-A9-E633-F hosted in imgbb.com

---

<div class="post-metadata">

**Author:** ![TypeWrit3r](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/typewrit3r/32/3993_2.png) [@TypeWrit3r](https://forum.juce.com/u/TypeWrit3r)\
**Post date:** [May 22, 2019, 4:59pm UTC](https://forum.juce.com/t/web-browser/33491/5 "2019-05-22T16:59:06Z")

</div>

I am trying to embed a html5 game so there is no way to get this working on windows?

---

<div class="post-metadata">

**Author:** ![TypeWrit3r](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/typewrit3r/32/3993_2.png) [@TypeWrit3r](https://forum.juce.com/u/TypeWrit3r)\
**Post date:** [May 22, 2019, 6:17pm UTC](https://forum.juce.com/t/web-browser/33491/6 "2019-05-22T18:17:13Z")

</div>

Lastly, would including a header of the libraries be a possible fix?  
If so how do you include a header like…

Header set X-UA-Compatible “IE=edge”

---

<div class="post-metadata">

**Author:** ![jsolo](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jsolo/32/30_2.png) [@jsolo](https://forum.juce.com/u/jsolo)\
**Post date:** [May 22, 2019, 6:57pm UTC](https://forum.juce.com/t/web-browser/33491/7 "2019-05-22T18:57:27Z")

</div>

@TypeWriterAudio JUCE’s web browser stuff is really out of date (at least on macOS).

I had to embed Monaco editor into a JUCE app a few months ago and ended up rolling my own on macOS (replacing all the bits with the new WebKit browser stuff, wiring up JS communication etc.).

Here’s an interesting project I looked at which I got working inside JUCE on macOS [https://github.com/zserge/webview/tree/webview-x](https://github.com/zserge/webview/tree/webview-x)

Take a look at that (webview-x branch) and see if your game runs in there. You can get a native handle from there and add it to the JUCE view hierarchy (with little or no modification to the lib).

---

<div class="post-metadata">

**Author:** ![jrlanglois](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jrlanglois/32/21372_2.png) [@jrlanglois](https://forum.juce.com/u/jrlanglois)\
**Post date:** [May 23, 2019, 4:31pm UTC](https://forum.juce.com/t/web-browser/33491/8 "2019-05-23T16:31:25Z")

</div>

Like @hhit is saying, the issue is _way_ more complex than just using JUCE’s web browser implementation, which just wraps basic OS browser components.

You really need to integrate a proper web browser framework yourself. Webkit is the most complete.
