# HTMLViewer vs System.GotoURL?

**URL:** <https://forum.xojo.com/t/htmlviewer-vs-system-gotourl/68973>\
**Category:** General\
**Created:** [March 10, 2022, 5:06am UTC](https://forum.xojo.com/t/htmlviewer-vs-system-gotourl/68973 "2022-03-10T05:06:55Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steve\_Batson](https://forum.xojo.com/user_avatar/forum.xojo.com/steve_batson/32/5835_2.png) [@Steve\_Batson](https://forum.xojo.com/u/Steve_Batson)\
**Post date:** [March 10, 2022, 5:06am UTC](https://forum.xojo.com/t/htmlviewer-vs-system-gotourl/68973/1 "2022-03-10T05:06:55Z")

</div>

What’s everyone’s take on this. If an app just needs to show specific web page(s), it will obviously look more integrated using the HTMLViewer.LoadURL() seems to work fine in my testing. It says any protocol besides HTML may or may not work depending on the OS, assuming this is not an issue, any other reasons not to use it?

Obviously, the other options is to just open a browser to the desired URL using GotoURL.

---

<div class="post-metadata">

**Author:** ![Sam\_Rowlands](https://forum.xojo.com/user_avatar/forum.xojo.com/sam_rowlands/32/265_2.png) [@Sam\_Rowlands](https://forum.xojo.com/u/Sam_Rowlands)\
**Post date:** [March 10, 2022, 5:35am UTC](https://forum.xojo.com/t/htmlviewer-vs-system-gotourl/68973/2 "2022-03-10T05:35:41Z")

</div>

It really depends on several factors, but mainly what pages are you displaying.

If they’re say help pages on your site, a HTMLViewer is fine. If however it’s a third party site that needs cookies and passwords, use the default web browser with showURL.

---

<div class="post-metadata">

**Author:** ![Beatrix\_Willius](https://forum.xojo.com/user_avatar/forum.xojo.com/beatrix_willius/32/282_2.png) [@Beatrix\_Willius](https://forum.xojo.com/u/Beatrix_Willius)\
**Post date:** [March 10, 2022, 5:56am UTC](https://forum.xojo.com/t/htmlviewer-vs-system-gotourl/68973/3 "2022-03-10T05:56:39Z")

</div>

I use both. HtmlViewer.LoadURL looks more integrated and I can display a special price for buying my app. But I also have a GoToURL.

---

<div class="post-metadata">

**Author:** ![Anthony\_G\_Cyphers](https://forum.xojo.com/user_avatar/forum.xojo.com/anthony_g_cyphers/32/16862_2.png) [@Anthony\_G\_Cyphers](https://forum.xojo.com/u/Anthony_G_Cyphers)\
**Post date:** [March 10, 2022, 5:57am UTC](https://forum.xojo.com/t/htmlviewer-vs-system-gotourl/68973/4 "2022-03-10T05:57:30Z")

</div>

It’s also important to note that HTMLViewer on Desktop doesn’t support hardware interaction with things like media devices, or the notification API.

---

<div class="post-metadata">

**Author:** ![Thom\_McGrath](https://forum.xojo.com/user_avatar/forum.xojo.com/thom_mcgrath/32/192_2.png) [@Thom\_McGrath](https://forum.xojo.com/u/Thom_McGrath)\
**Post date:** [March 10, 2022, 6:38am UTC](https://forum.xojo.com/t/htmlviewer-vs-system-gotourl/68973/5 "2022-03-10T06:38:04Z")

</div>

The user is a factor too. I used to do my OAuth with HTMLViewer, but users were concerned about putting their passwords into my app. Of course, I know I’m not stealing their password and couldn’t if I wanted to, but the user doesn’t know how this stuff works. Having the user use their own browser helped user confidence greatly, plus they can use their password manager easier.

So again, it’s all about context. There isn’t one perfect answer.

---

<div class="post-metadata">

**Author:** ![David\_Cox](https://forum.xojo.com/user_avatar/forum.xojo.com/david_cox/32/227_2.png) [@David\_Cox](https://forum.xojo.com/u/David_Cox)\
**Post date:** [March 10, 2022, 8:54am UTC](https://forum.xojo.com/t/htmlviewer-vs-system-gotourl/68973/6 "2022-03-10T08:54:25Z")

</div>

I use an HTMLViewer in all areas, except when I cannot! For example, if the HTMLViewer WebPage has a Movie, it cannot go full screen.

You could use an HTMLViewer, but have a button to ‘View in Browser’.

---

<div class="post-metadata">

**Author:** ![Ricardo\_Cruz](https://forum.xojo.com/user_avatar/forum.xojo.com/ricardo_cruz/32/7852_2.png) [@Ricardo\_Cruz](https://forum.xojo.com/u/Ricardo_Cruz)\
**Post date:** [March 10, 2022, 11:13am UTC](https://forum.xojo.com/t/htmlviewer-vs-system-gotourl/68973/7 "2022-03-10T11:13:00Z")

</div>

As a user, I personally prefer seeing links in my preferred browser (so I can bookmark them, if I want). In apps coming with in-app browsers, I appreciate when there is an opt-out setting for that feature.

---

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [March 10, 2022, 12:12pm UTC](https://forum.xojo.com/t/htmlviewer-vs-system-gotourl/68973/8 "2022-03-10T12:12:12Z")

</div>

> [@Ricardo\_Cruz](#):
>
> so I can bookmark them, if I want

You already can bookmark your sites with HTMLViewer.

One need to add a Bookmark window and code to deal with (save to disk / read from disk).  
Really easy to do. (of course takes a bit of time, but fun to have).

Nota: I love that Cookies are not supported on HTMLViewer 😉

---

<div class="post-metadata">

**Author:** ![Ricardo\_Cruz](https://forum.xojo.com/user_avatar/forum.xojo.com/ricardo_cruz/32/7852_2.png) [@Ricardo\_Cruz](https://forum.xojo.com/u/Ricardo_Cruz)\
**Post date:** [March 10, 2022, 12:32pm UTC](https://forum.xojo.com/t/htmlviewer-vs-system-gotourl/68973/9 "2022-03-10T12:32:40Z")

</div>

Errr, can I bookmark them on desktop and open them on my mobile Safari later? 😃 I will still miss features from my browser.

---

<div class="post-metadata">

**Author:** ![Steve\_Batson](https://forum.xojo.com/user_avatar/forum.xojo.com/steve_batson/32/5835_2.png) [@Steve\_Batson](https://forum.xojo.com/u/Steve_Batson)\
**Post date:** [March 10, 2022, 4:22pm UTC](https://forum.xojo.com/t/htmlviewer-vs-system-gotourl/68973/10 "2022-03-10T16:22:51Z")

</div>

Thanks all for the great feedback. Sam’s comment mentions exactly the type of thing of how I’d most likely be using it to open a URL to something like help.

I certainly understand and agree about opening a browser for all the features, passwords, cookies, bookmarks, etc, if sending the user to a website for something more than some content like help.

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [March 10, 2022, 6:05pm UTC](https://forum.xojo.com/t/htmlviewer-vs-system-gotourl/68973/11 "2022-03-10T18:05:36Z")

</div>

> [@Emile\_Schwarz](#):
>
> Nota: I love that Cookies are not supported on HTMLViewer 😉

The only way I know of HTMLViewer not handling cookies is on Windows using the WebKit renderer and adding a CancelLoad event handler. Cookies are working just fine in every other situation here

If you are relying on this broken buggy behavior you should know it’s been marked as fixed.

65219 - adding HTMLViewer.CancelLoad causes cookies to stop working in WebKit HTMLViewer control on Windows

* * *

Circling back on topic, I only use HTMLViewer in my updates window because of the simplicity of the content. I launch my help in the user’s web browser because the content is significantly more intricate and allows the user to bookmark pages.

IMO, content like help should **not** be displayed in an internal HTMLViewer.
