Javascript to Processing?

edited September 2014 in JavaScript Mode

Hello world I really need help with this one guys.. Is there any chance to read a button state from JavaScript to my processing Application? I have my own website .And from here i want to controll for example a collor of a Rect when this button is pressed:

 <script type="text/javascript">
  function writeText()
  {
  alert("Color changed to Red");
  }
  </script>
  </head>
  <body>
  <form>
  <input type="button" value="Red"
  onclick="writeText()" >

Is there any way to do this? ThankYou.

Answers

Sign In or Register to comment.