# 7.3	Sending messages from the HTML to the UDI

Your HTML can send messages to your UDI using window\.parent.postMessage(). For example:

```
window.parent.postMessage("Message to UDI", "*");
```

This is received by the UDI in a UDI.onHTMLMessage() function. For example:

```
UDI.onHTMLMessage = function(msg) {
	// msg == "Message to UDI"
};
```

Common uses include notifying the UDI of an action such as button click, or a change of value in some input field in the HTML.
