SHARE
TWEET

How do I pass the contents of a textarea field to a java applet

a guest Feb 22nd, 2012 12 Never
  1. <script>
  2.   document.getElementById("mybutton").addEventListener("click", function() {
  3.     document.getElementById("myapplet").myJavaMethod(
  4.       document.getElementById("mytextarea").value);
  5.   }, false);
  6. </script>
  7.        
  8. <textarea id="mytextarea"></textarea>
  9. <button id="mybutton">click me</button>
  10. <applet id="myapplet" ...></applet>
RAW Paste Data
Top