title: Javascript, copy a text in a field by clicking a button
body: <p>I try to make a simple javascript fonction which will allow me to click on a button, then a text is duplicated into a field.</p>
  
  <p>For example:
  On my HTML page (or PHP), I have a blank field, a text and a button, like:</p>
  
  <blockquote>
    <p>THE FIELD<br/>Hello everybody THE BUTTON</p>
  </blockquote>
  
  <p>When I click on the button, the text "Hello everybody" appears in the field.</p>
  
  <p>Thank you very much if you have a simple code example.</p>
  
  <p>Sim100</p>