so I have a Java Applet and I want to pass a string within the Java Applet to Javascript, how do you do this? Is it even possible? I tried searching google but it only showed examples of passing a JS string to Java, not Java to JS, the String is in a method
public String calc(String ans2)
Please help me as I need to pass the String to Javascript so I can edit it further using html codes, Thanks
function getJavaString() { str = binomial.Main.calc(ans); alert(str); }