KOMPX.COM or COMPMISCELLANEA.COM   

JavaScript

  1. Accessing the first element in forEach loop (JavaScript)
  2. Add multiple classes at once (JavaScript)
  3. Add an external CSS file by JavaScript
  4. Add thousands separator into numbers (JavaScript)
  5. Adding a class to all sibling elements of a specific type in JavaScript
  6. Append an element after a specific element in JavaScript
  7. Array to string in JavaScript
  8. Calculate sum of HTML table column in JavaScript
  9. Capitalize the first letter (JavaScript)
  10. Checking if the current URL contains a given string (JavaScript)
  11. Click event only on parent, not children
  12. Count the number of elements in an array (JavaScript)
  13. Detect if a class has been added (JavaScript)
  14. Detecting a newly generated element and adding a class to it in JavaScript
  15. Generating an HTML list out of page headings in JavaScript
  16. Get class name of an element on click (JavaScript)
  17. Get tag name of an element on click (JavaScript)
  18. Get the current URL in JavaScript
  19. Get the name of a web page (JavaScript)
  20. Get the parent of a specified type (JavaScript)
  21. Get the parent of an element (JavaScript)
  22. Get the query string of a URL (JavaScript)
  23. Get the title of a web page (JavaScript)
  24. Get URL without its query string (JavaScript)
  25. Getting the last class name in classList collection
  26. How to call a function multiple times (JavaScript)
  27. JavaScript form submit
  28. JavaScript rollover. Image swap
  29. Open page full screen (JavaScript)
  30. Open page full screen with older browsers support (JavaScript)
  31. Print an array into an HTML element in JavaScript
  32. Print current year in JavaScript
  33. Remove all attributes of an element
  34. Remove all classes at once in JavaScript
  35. Removing the last character from a string in Javascript
  36. Run only once inside a loop
  37. Select all given sibling elements between two other given sibling elements in JavaScript
  38. Transliterating Russian to English in JavaScript
  39. Wrap each character of a string in <span> tag (JavaScript)
  40. Wrap each word of text in <span> tag (JavaScript)
  41. Wrap the first word of text in <span> tag (JavaScript)