Explain Codes LogoExplain Codes Logo

Javascript

How do I redirect to another webpage?

javascript
redirects
user-navigation
single-page-applications

Ecmascript 6 arrow function that returns an object

javascript
arrow-functions
es6
destructuring

How can I select an element by name with jQuery?

javascript
jquery
selectors
web-development

Changing cursor to waiting in javascript/jquery

javascript
cursor
jquery
ajax

File Upload without Form

javascript
file-upload
formdata
fetch-api

Colors in JavaScript console

javascript
console-styling
debugging
customization

Why would a JavaScript variable start with a dollar sign?

javascript
jquery
coding-guidelines
best-practices

Image loaded event in for ng-src in AngularJS

javascript
image-loading
angularjs
error-handling

How do I read the contents of a Node.js stream into a string variable?

javascript
streams
buffers
encoding

Detecting arrow key presses in JavaScript

javascript
key-events
browser-compatibility
default-actions

How to get the first character of a string?

javascript
string-manipulation
unicode
browser-compatibility

How to take a screenshot of a div with JavaScript?

javascript
html2canvas
promises
cross-browser

Convert php array to Javascript

javascript
json-encoding
data-transfer
ajax

Response to preflight request doesn't pass access control check - No 'Access-Control-Allow-Origin' header

javascript
cORS
http-headers
local-development

Jquery/javascript to replace broken images

javascript
image-handling
error-handling
cross-browser

How do I create a GUID / UUID?

javascript
uuid
performance
best-practices

Open URL in same window and in same tab

javascript
url-redirection
window-open
location-replace

How to use jQuery to select a dropdown option?

javascript
jquery
dropdown
event-simulation

Print the contents of a DIV

javascript
print
dynamic-content
cross-browser

Href image link download on click

javascript
download
server-side
browser-compatibility