BTW, I think it's valuable to point out in the example thatMessageEvent.target == the port that received the message (so we don't needto use a closure as in the example below - just use event.target.postMessage()).
Yes, I think using this.postMessage() should also work. -- Simon Pieters Opera Software