# Need Help, how to send URL in "com.webos.app.browser"

**URL:** <https://discourse.nodered.org/t/need-help-how-to-send-url-in-com-webos-app-browser/71419>\
**Category:** General\
**Tags:** node-red-contrib-lgtv\
**Created:** [29 November 2022 08:21 UTC](https://discourse.nodered.org/t/need-help-how-to-send-url-in-com-webos-app-browser/71419 "2022-11-29T08:21:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bodo](https://avatars.discourse-cdn.com/v4/letter/b/f0a364/32.png) [@bodo](https://discourse.nodered.org/u/bodo)\
**Post date:** [29 November 2022 08:21 UTC](https://discourse.nodered.org/t/need-help-how-to-send-url-in-com-webos-app-browser/71419/1 "2022-11-29T08:21:27Z")

</div>

Hi  
I wonder how to send the URL to the browser?  
I manage to display the Browser on my LG webOS with a function:

```auto
msg.payload = "com.webos.app.browser";
return msg;

```

I send this to the app node in node-red-contrib-lgtv.

What I need is: How do I send the URL? I tried adding a function with:

```auto
msg.topic = "www.blabla.com";
return msg;

```

and

```auto
msg.params = "http://www.blabla.com";
return msg;

```

and

```auto
msg.target = "http://www.blabla.com";
return msg;

```

and

```auto
msg.params.target.= "http://www.blabla.com";
return msg;

```

The last threw an error:

```auto
"TypeError: Cannot set properties of undefined (setting 'target')"

```

I found something like:

```auto
webOSDev.launch({
  id: webOSDev.APP.BROWSER,
  params: {
    target: 'http://www.your-web-page.com', // target should be
  },
  onSuccess(res) {
    // do something
  },
  onFailure(res) {
    // handle error
  },
});

```

but I don't understand how to do something like this.  
Thank you for giving me a hint.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [29 November 2022 08:43 UTC](https://discourse.nodered.org/t/need-help-how-to-send-url-in-com-webos-app-browser/71419/2 "2022-11-29T08:43:05Z")

</div>

> [@bodo](#):
>
> I send this to the app node in node-red-contrib-lgtv.

Why not use the `lgtv-browser` node. Looking at the source code you simply set the URL in msg.payload

---

<div class="post-metadata">

**Author:** ![bodo](https://avatars.discourse-cdn.com/v4/letter/b/f0a364/32.png) [@bodo](https://discourse.nodered.org/u/bodo)\
**Post date:** [29 November 2022 09:19 UTC](https://discourse.nodered.org/t/need-help-how-to-send-url-in-com-webos-app-browser/71419/3 "2022-11-29T09:19:25Z")

</div>

Yes, this was the correct hint. Thank you. I forgot the `https://`

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [13 December 2022 09:20 UTC](https://discourse.nodered.org/t/need-help-how-to-send-url-in-com-webos-app-browser/71419/4 "2022-12-13T09:20:10Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
