This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| web:js [2026/01/22 12:45] – [Mouse / Touch detection] Bernard Condrau | web:js [2026/09/25 15:13] (current) – [Modify an elements value in an iFrame] Bernard Condrau | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| * [[https:// | * [[https:// | ||
| * [[https:// | * [[https:// | ||
| + | |||
| + | ==== Find highest z-index on page in browser ==== | ||
| + | * If an unexpected element is blocking your screen, you can find the highest z-index value currently in use. Press F12, go to the Console tab, paste this code, and press Enter:< | ||
| + | ...Array.from(document.querySelectorAll(' | ||
| + | .map(el => parseFloat(window.getComputedStyle(el).zIndex)) | ||
| + | .filter(z => !isNaN(z)) | ||
| + | ); | ||
| + | console.log(' | ||
| + | </ | ||
| + | * To bypass the warning, type allow pasting directly into the Chrome console and press Enter, then paste your code again. | ||
| ==== Modify an elements value in an iFrame ==== | ==== Modify an elements value in an iFrame ==== | ||