So I found this comment box the user Rick Hitchcock submitted here
What I need to do is a dd a generic user image and a user name (can be anonymous) when a user submits a comment. Thing is I have no idea how to go about doing this.
Can someone please help? Here is the code.......
document.addEventListener("DOMContentLoaded", function(event) {
  var form= document.querySelector('form');
  var textarea= document.querySelector('textarea');
  textarea.onkeypress= function(e) {
    if(e.which === 13 && !e.shiftKey) {
      this.parentNode.onsubmit(e);
    }
  }
  form.onsubmit= function(e) {
    var textarea = form.querySelector('textarea');
    var response = textarea.value;
    var node = document.createElement('div');
    node.innerHTML= response.replace(/\n/g,'<br>') + '<hr>';
    form.appendChild(node);
    textarea.value= '';
    e.preventDefault();
  }
});textarea {
  width: 50%;
  height: 5em;
  float: left;
}
p {
  clear: both;
}<form>
  <textarea></textarea>
  <input type="submit">
  <p>
    Comments Below:
  </p>
</form> 
     
    