JavaScript & DOM Tips, Tricks, and Techniques, Volume 2
- Length: 138 pages
- Edition: 1
- Language: English
- Publication Date: 2018-09-17
- ISBN-10: B07HFXPFNL
- Sales Rank: #2560854 (See Top 100 Books)
This is volume 2 of my JavaScript & DOM tips e-book series. This is 70 individual, easy-to-digest tips related to JavaScript and DOM manipulation.
These tips were originally published in my newsletter, Web Tools Weekly, a resource for front-end developers with a special focus on tools.
Title Page Table of Contents Preface offsetParent window.scrollBy() cloneNode(deep) importNode() A Note About appendChild() and insertBefore() getClientRects() Array.indexOf() script.onload Document.createComment() previousElementSibling / nextElementSibling Getting Image Widths The void Operator for IIFEs Function as Second Argument for String.replace() DOM Collections Colors with getComputedStyle() event.target vs. event.currentTarget preventDefault() Using Array.splice() The form.submit() and form.reset() Methods Converting an Array-like Object to an Array document.designMode JSON.parse() and JSON.stringify() Property Access on Strings The Screen API The disabled Attribute for Stylesheets and Scripts useCapture with addEventListener() event.detail HTML Elements as Global Variables The scrollHeight Property classList.toggle() with Boolean Force outerHTML The beforeprint and afterprint Events Radio Buttons and the change Event document.readyState “splat” an Array in ES5 vs. ES6 Spread Operator vs. Rest Parameters insertAdjacentElement() and insertAdjacentText() DOMTokenList Detecting Shift/CTRL/ALT/Meta Keys CSS.supports() Expando Properties form.length / select.length Node.isSameNode() Array.prototype.filter() The eventPhase Property window.open() and window.opener Attribute Collections as NamedNodeMaps Blank Lines Disabling the Context Menu Queueing Items in an Array text.wholeText Property Modern Cookie Limitations Commenting Confusing Code Assigning Anonymous, Immediately Invoked Functions to Variables The storage Event String Creation Using fromCharCode() Template Literals Tagged Template Literals The Range API defaultChecked on Radio Buttons and Checkboxes Using Negative Values with Array.prototype.slice() getElementsByName() Performance Testing with console.time() and console.timeEnd() Dynamic Downloads with Data URIs and the download Attribute Math.abs() Behavior with Different Values The nodeValue property Using the debugger Statement innerHTML and HTML Entities More Weekly Tips! About the Author
Donate to keep this site alive
To access the Link, solve the captcha.
1. Disable the AdBlock plugin. Otherwise, you may not get any links.
2. Solve the CAPTCHA.
3. Click download link.
4. Lead to download server to download.