How can I send an event from parent window to its child window?

I want to send some event/data from parent window to its child window. How can I do so?

I have tried postMessage, but it didn’t work.