# Postmessage from Node-Red to webpage

**URL:** <https://discourse.nodered.org/t/postmessage-from-node-red-to-webpage/66514>\
**Category:** General\
**Created:** [16 August 2022 19:16 UTC](https://discourse.nodered.org/t/postmessage-from-node-red-to-webpage/66514 "2022-08-16T19:16:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![werneroostendorp](https://avatars.discourse-cdn.com/v4/letter/w/35a633/32.png) [@werneroostendorp](https://discourse.nodered.org/u/werneroostendorp)\
**Post date:** [16 August 2022 19:16 UTC](https://discourse.nodered.org/t/postmessage-from-node-red-to-webpage/66514/1 "2022-08-16T19:16:58Z")

</div>

hi, i am trying to interact from Node-Red towards a webpage (online POS) via Postmessage.  
already tried a lot of options but without succes. Hope someone can help me getting started.

> **[Reference](https://docs.vendhq.com/docs/client_api_reference)**
>
> Client API Reference Overview The web client application (Web Register) supports a couple of functions allowing browser extensions to interact with the sale. Methods Add a line item /\*\* \* Add a new line item to the sale \*/...

Is there a node where i can pass this message to another open tab in the browser?

```auto
window.postMessage(JSON.stringify({
   method: 'add-customer',
   params: {
     customer_id: '080027ac-bd2c-11e5-ec95-d12579aa90a3'
   }
 }), window.location.origin);

```

---

<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:** [15 October 2022 19:17 UTC](https://discourse.nodered.org/t/postmessage-from-node-red-to-webpage/66514/2 "2022-10-15T19:17:53Z")

</div>

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