title: Javascript: Input after button click
body: <p>I was trying to figure out how to make a style editor for html. Like you can use here on stackoverflow the <strong>bold</strong> function. You can make text bold with the javascript function </p>
  
  <pre><code>str.bold();
  </code></pre>
  
  <p>This will bold the string you put in of course. I want to make it so when you click on a button the next things you type will be bold. When you click on it again the next thing you type will not be bold again. </p>
  
  <p>I thought of some things. But all of them were not really possible. </p>