Explain Codes LogoExplain Codes Logo

Javascript

Scrollintoview() causing the whole page to move

javascript
scrolling
smooth-scroll
scrollintoview

How to set radio button status with JavaScript

javascript
dom-manipulation
radio-button
javascript-best-practices

What is "require" in JavaScript and NodeJS?

javascript
module-system
require-function
nodejs

In what situations would AJAX long/short polling be preferred over HTML5 WebSockets?

javascript
ajax
websockets
polling

Detect if an element is visible with jQuery

javascript
performance
best-practices
promises

Jquery UI accordion that keeps multiple sections open?

javascript
responsive-design
best-practices
callbacks

Tooltips for Button elements

javascript
responsive-design
accessibility
third-party-libraries

Javascript / Chrome - How to copy an object from the webkit inspector as code

javascript
devtools
javascript-objects
circular-references

How to store a byte array in Javascript

javascript
typed-arrays
binary-data
memory-management

Node.js create folder or use existing

javascript
async-programming
error-handling
performance-optimization

Check/uncheck checkbox with JavaScript

javascript
event-listeners
checkboxes
user-experience

Loading basic HTML in Node.js

javascript
file-serving
http-headers
expressjs

Download a file by jQuery.Ajax

javascript
prompt-engineering
file-downloads
browser-support

How can I replace newline or \r\n with <br/>?

javascript
regex-patterns
escape-sequences
cross-platform

How to Save the Output of a Console.log(Object) to a File?

javascript
console-logging
browser-environments
debugging-tools

Passing data to a bootstrap modal

javascript
prompt-engineering
event-listeners
modal-dialog

Lodash remove duplicates from an array

javascript
lodash
array
performance

How to include multiple js files using jQuery $.getScript() method

javascript
promises
callbacks
functions

What is the best way to initialize a JavaScript Date to midnight?

javascript
date-manipulation
javascript-best-practices
performance-optimization

How to make div fixed after you scroll to that div?

javascript
css-positioning
sticky-elements
intersection-observer-api