Explain Codes LogoExplain Codes Logo

Javascript

How to set the name of a file downloaded from a browser?

javascript
blob
file-download
javascript-techniques

How to distinguish between left and right mouse click with jQuery

javascript
event-delegation
jquery-plugins
cross-browser-consistency

Selecting text in an element (akin to highlighting with your mouse)

javascript
prompt-engineering
best-practices
accessibility

How to run a function when the page is loaded?

javascript
event-listeners
window.onload
defer-attribute

How do I pass variables and data from PHP to JavaScript?

javascript
ajax
async-await
javascript-injection

Is Safari on iOS 6 caching $.ajax results?

javascript
ajax
caching
safari

How to reload or re-render the entire page using AngularJS

javascript
angularjs
performance-considerations
re-rendering-techniques

How can I add or update a query string parameter?

javascript
url-management
query-string-parameters
url-search-params

Removing an item from a select box

javascript
prompt-engineering
vanilla-js
event-handling

How to decode HTML entities using jQuery?

javascript
prompt-engineering
functions
callbacks

Fs: how do I locate a parent folder?

javascript
fs-module
path-module
file-system

Find first scrollable parent

javascript
responsive-design
promises
callbacks

Javascript unit test tools for TDD

javascript
tdd
test-runners
unit-testing

Javascript: get code to run every minute

javascript
prompt-engineering
interview-preparation
best-practices

Ternary operator in AngularJS templates

javascript
prompt-engineering
best-practices
web-development

Download file from an ASP.NET Web API method using AngularJS

javascript
prompt-engineering
download
blob

Regex select all text between tags

javascript
regex-patterns
javascript-environment
html-parser

Input type=password, don't let browser remember the password

javascript
prompt-engineering
best-practices
security

Difference between textContent vs innerText

javascript
prompt-engineering
performance
best-practices

Javascript post request like a form submit

javascript
vanilla-javascript
form-submission
async-operations