I've been using a bit of code (by John Evans) to execute javascript from within Dart:
void injectJavascript(String javascript, [bool removeAfter = false]){
var s = new Element.tag("script");
s.attributes["type"] = "text/javascript";
s.text = javascript;
document.body.nodes.add(s);
if (removeAfter != null && removeAfter)
s.remove();
}
injectJavascript("alert('using javascript')");
But I haven't been able to send or return variables. Is this currently possible? If not, any idea when it will become possible?