So what I want to do it start a page and if the user starts typing some input it shows that at the top of the page. But if the user stops typing input for lets say around 3 seconds it would automatically delete it.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s achievable in vanilla javascript,
setTimeout.setTimeoutreturns an ID, which you can use toclearTimeoutif you don’t want it to execute: