I have this button
<button id="stopButton" onClick="stop(); clearInterval(add); ">Sabitle</button>
And I have this function
function displayMessage(message)
{
chatTextArea.value = message + "\n";
chatTextArea.scrollTop = chatTextArea.scrollHeight;
if(message == "Stop")
{
!!!!! I want to click stopButton in this area !!!!
}
}
How can I click this button in function?