Explain Codes LogoExplain Codes Logo

Javascript

How to Set Focus on Input Field using JQuery

javascript
prompt-engineering
event-handling
jquery-selectors

How can I use multiple refs for an array of elements with hooks?

javascript
prompt-engineering
useeffect
callback-refs

How to create a dialog with “Ok” and “Cancel” options

javascript
custom-dialogs
accessibility
event-listeners

How to loop through array in jQuery?

javascript
prompt-engineering
functions
callbacks

Changing element style attribute dynamically using JavaScript

javascript
responsive-design
best-practices
browser-compatibility

How to convert a DOM node list to an array in Javascript?

javascript
javascript-features
browser-compatibility
dom-nodelist

How to call a REST web service API from JavaScript?

javascript
async-await
fetch-api
error-handling

Remove everything after a certain character

javascript
prompt-engineering
functions
callbacks

Sort JavaScript object by key

javascript
sort
object
key-value

How can I capture the right-click event in JavaScript?

javascript
event-handling
contextmenu
accessibility

What is the difference between an ArrayBuffer and a Blob?

javascript
blob
arraybuffer
binary-data

How do I call an Angular 2 pipe with multiple arguments in code and in templates?

javascript
pipe-engineering
angular
template-syntax

Replace words in the body text

javascript
prompt-engineering
functions
callbacks

How to get an HTML element's style values in JavaScript?

javascript
browser-inconsistencies
native-js-methods
css-properties

How to execute a JavaScript function when I have its name as a string

javascript
dynamic-execution
function-execution
javascript-advanced

How do I replace all line breaks in a string with <br /> elements?

javascript
regular-expressions
cross-platform
html

What is the difference between BehaviorSubject and Observable?

javascript
observable-patterns
subject-usage
angular-best-practices

How can I detect if a browser is blocking a popup?

javascript
popup-engineering
browser-behavior
user-experience

How can I round a number in JavaScript? .toFixed() returns a string?

javascript
number-rounding
math-functions
javascript-tricks

Current State of Javascript Canvas Libraries?

javascript
canvas-libraries
javascript-libraries
web-development