27
You can use the :scope
pseudo class to select direct children of an element with .querySelectorAll()
.
With the HTML above, you can do:
26
You can mailto
multiple email addresses.
25
Adding an i
before the closing bracket in CSS attribute selector causes the value to be compared case-insensitively.
With the HTML above, we can do this:
24
You can add the option { once: true }
to an event listener to automatically remove it when has been invoked.
23
JSON.stringify takes 3 parameters. The third parameter can be used to pretty-print the output.
22
You can use JavaScript Vibration API to vibrate devices.
21
You can change the filename of a downloadable file by defining a value in the download attribute.
20
It’s possible to identify how many separate fingers are touching the screen.
19
You can use the (Network Information API)[https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation] to get information about the connection a device is using.
18
Target the button of an <input>
of <type="file">
using the ::file-selector-button
selector.