Search
 
SCRIPT & CODE EXAMPLE
 

HTML

how to set timeout for a div tag in html

<script>
  const timeout = document.getElementsByClassName('classname')
  setTimeout(hideElement, 1000) //milliseconds until timeout//
  function hideElement() {
    timeout.style.display = 'none'
</script>
<div class="classname">
  <span> &times; </span>
Comment

PREVIOUS NEXT
Code Example
Html :: how to use font awesome icons in html 
Html :: group checkbox html 
Html :: v-expansion-panel example 
Html :: anchor tag background image html 
Html :: vertical line navigation bar 
Html :: div search bar 
Html :: large text class 
Html :: bulma css lighter buttons 
Html :: html entity question mark 
Html :: multi item slider html css 
Html :: html gif not showing 
Html :: html center text 
Html :: text field input default value html 
Html :: preload html 
Html :: html lorem ipsum 
Html :: html q tag 
Html :: what is the code element in html 
Html :: twig escape 
Html :: HTML-Whatsapp Spammer 
Html :: bootstrap nav tabs 
Html :: bootstrap 4 flex 
Html :: expo webview local html 
Html :: td whole row css 
Html :: onclick reportrange html 
Html :: html container farbverlauf 
Html :: infinity html entity 
Html :: jspdf html to pdf angular 8 
Html :: attribute name selection 
Html :: form action in html 
Html :: xhtml 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =