WindowWrapper ww = (WindowWrapper)thisObj;
Window window = ww.window;
if (len >= 1) {
String message =
(String)Context.jsToJava(args[0], String.class);
if (window.confirm(message))
return Context.toObject(Boolean.TRUE, thisObj);
else
return Context.toObject(Boolean.FALSE, thisObj);
}
return Context.toObject(Boolean.FALSE, thisObj);