title: How to submit <textarea> value using javascript?
body: <p>I have a chrome extension for personal use to change certain websites I visit. One site has a <code>&lt;textarea&gt;</code> which you can type in. There is no submit button. You must press enter for what you typed to be submitted. There are no form tags anywhere either. </p>
  
  <pre><code>&lt;div id="chatRoot"&gt;
      &lt;div data-reactroot="" class="chat-box-wrap_20_R_" style="min-width: 1180px;"&gt;
          &lt;div class="chat-box_Wjbn9 faction_2T9gm chat-active_1Sufk"&gt;
              &lt;div class="chat-box-input_1SBQR "&gt;
                  &lt;div&gt;
                      &lt;textarea name="chatbox" maxlength="840" class="chat-box-textarea_2V28W"&gt;
                      &lt;/textarea&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
           &lt;/div&gt;
       &lt;!-- react-empty: 216 --&gt;
       &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I have tried creating a keyboard event and dispatching that with the enter key code, and while I believe it worked, it was rejected as an 'untrusted keypress.' </p>
  
  <p>How do I submit data to a <code>textarea</code> that has no form tags, no submit buttons, which only accepts the ENTER button as a valid form of submission, using vanilla javascript?</p>
  
  <p>*I do not want to have to push the enter button. I want my chrome extension to automatically input data into the <code>textarea</code> (which I have no problems with), and then have my chrome extension automatically submit the data it inputted (which is where my problem lies).</p>
  
  <p>Thank you.</p>