Just a collection of interesting questions on StackOverflow, the programmer’s greatest online Q&A source.
- How to detect caps lock?
- How to validate numbers?
- How to copy to the clipboard?
- How to validate emails?
- How to pretty-print JSON?
- How to check if a checkbox is checked?
- You cannot comment JSON files
- The difference between
- How to check if one string contains another string?
- How to check if a DOM element exists?
- How to test if a DOM element is visible?
- How to tell apart left/right click?
- How to hide a
divwhen you click outside of it?
- How to get the current URL of the page
document.createElement… in jQuery
- How to empty an array
- What does
- How to get dimensions of web page, screen, and browser?
- How to test whether the browser window is currently visible?
- How to add minutes to time?
- How to add hours to time?
- Keep parents of floating elements from collapsing
- Center a div in a div
- Changing input placeholder text color with CSS
- Clarifying relative URLs in CSS
- Fill the remaining page height with a
- Style a dropdown with just CSS
- Should I use
- Disable text selection highlighting
- How to set cellpadding and cellspacing?
- What clearfix should I use?
- Applying CSS to an
- Align content to bottom of a
- You cannot write
- Dynamically changing website favicon
- Style: why do we use dashes for ids and classes?
- What does ___ mean in PHP?
- How to prevent SQL injection
- Get the first element of an array
- Performance of