notes
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| notes [2025/10/07 19:33] – admin | notes [2025/10/08 09:59] (current) – admin | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| **Description**: | **Description**: | ||
| - | **Functions**: | + | **Functions**: |
| + | **Demo**: http:// | ||
| < | < | ||
| Line 68: | Line 68: | ||
| <!-- Copy all text in editor area --> | <!-- Copy all text in editor area --> | ||
| <script language=" | <script language=" | ||
| - | const textarea = document.querySelector(' | + | document.querySelector("button").onclick = function(){ |
| - | const button | + | |
| - | button.addEventListener(' | + | |
| - | try { | + | } |
| - | await navigator.clipboard.writeText(textarea.value); | + | |
| - | } catch (err) { console.error(err.name, err.message);} | + | |
| - | }) | + | |
| </ | </ | ||
| </ | </ | ||
notes.1759865621.txt.gz · Last modified: by admin
