Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

chatbot js

document.addEventListener("DOMContentLoaded", () => {
  document.querySelector("#input").addEventListener("keydown", function(e) {
    if (e.code === "Enter") {
        console.log("You pressed the enter button!")
    }
  });
});
Source by www.htmlgoodies.com #
 
PREVIOUS NEXT
Tagged: #chatbot #js
ADD COMMENT
Topic
Name
5+9 =