how to control threads in a jsp page using javascript button?
when i click on a button, i should be able to pause a thread.
i have tried writing code in a function using <% ... %> tags, but they are executed automatically on page load. and when i click on the button, nothing happens.