KOMPX.COM or COMPMISCELLANEA.COM   

JavaScript

  1. Accessing the first element in forEach loop (JavaScript)
  2. Add thousands separator into numbers (JavaScript)
  3. Adding a class to all sibling elements of a specific type in JavaScript
  4. Append an element after a specific element in JavaScript
  5. Array to string in JavaScript
  6. Calculate sum of HTML table column in JavaScript
  7. Checking if the current URL contains a given string (JavaScript)
  8. Click event only on parent, not children
  9. Detect if a class has been added (JavaScript)
  10. Detecting a newly generated element and adding a class to it in JavaScript
  11. Generating an HTML list out of page headings in JavaScript
  12. Get the current URL in JavaScript
  13. Get the name of a web page (JavaScript)
  14. Get the query string of a URL (JavaScript)
  15. Get the title of a web page (JavaScript)
  16. Get URL without its query string (JavaScript)
  17. Getting the last class name in classList collection
  18. JavaScript form submit
  19. JavaScript rollover. Image swap
  20. Remove all attributes of an element
  21. Removing the last character from a string in Javascript
  22. Run only once inside a loop
  23. Select all given sibling elements between two other given sibling elements in JavaScript
  24. Transliterating Russian to English in JavaScript
  25. Wrap each character of a string in <span> tag (JavaScript)
  26. Wrap each word of text in <span> tag (JavaScript)
  27. Wrap the first word of text in <span> tag (JavaScript)