开发者

call javascript alert from java class [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reop开发者_如何学编程ened, visit the help center. Closed 12 years ago.

How to call javascript alert from java class


I can't know for sure, but if you want to make a Java Applet and Javascript interact, try these:

Java-to-Javascript Communication

Java - Javascript interaction


Perhaps you are looking for a message box similar to the Javascript alert() box? Then use

javax.swing.JOptionPane.showMessageDialog(null, "hello");
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜