Browser to Unity communication with WebGL

There are the functions Application.ExternalCall and Application.ExternalEval, that still seem to work fine in WebGL. Great!

But now the other way around:
In the WebPlayer you can use the following to send a message to a Unity object:
u.getUnity().SendMessage(“MyObject”, “MyFunction”, “Hello from a web page!”);

Is there a similar function in the WebGL implementation? And if so, how do I call it?

Never mind. Sorry. I looked in the wrong manual version. It’s very simple:
call SendMessage (‘MyGameObject’, ‘MyFunction’, ‘foobar’); from the webpage.

There are actually even much better ways available now. Look in the manual for the page: WebGL: Interacting with browser scripting

There are better ways instead of Application.ExternalCall and Application.ExternalEval, yes. But what alternatives are there for SendMessage?

BTW, you might be interested in this thread, if you talking about jslibs.