HTMLViewer and JavaScript

1 Is there any document stating what JavaScript commands do and don’t work with the HTMLViewer? For example, using the window.alert command does not work, but a lot of Javascript does work. Is it that anything that creates another window will not work - and will not work in the future?

2 Are there any examples of how to use the HTMLViewer.ExecuteJavaScript(js)?

Well, Mac? Win? Linux? Web?
For Mac you can use WebUIDelegateMBS to have alerts work.

Thanks Christian. Using a Mac OSX 10.8.4

So WebUIDelegateMBS may be your friend.
http://www.monkeybreadsoftware.net/class-webuidelegatembs.shtml

And you may want to try our example projects coming with our plugins for HTMLViewer.