User Tools

Site Tools


notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
notes [2025/10/07 19:33] adminnotes [2025/10/08 09:59] (current) admin
Line 2: Line 2:
  
 **Description**: Plain text editor / note taker in a browser tab.\\ **Description**: Plain text editor / note taker in a browser tab.\\
-**Functions**: Edit area, copy, open existing file, saving with filename. +**Functions**: Edit area, copy, open existing file, saving with filename.\\ 
 +**Demo**: http://www.custompc.plus.com/webnotes.htm
  
 <code> <code>
Line 68: Line 68:
 <!-- Copy all text in editor area --> <!-- Copy all text in editor area -->
 <script language="Javascript" > <script language="Javascript" >
-  const textarea = document.querySelector('textarea'); +document.querySelector("button").onclick = function(){ 
-  const button = document.querySelector('button');    +    document.querySelector("textarea").select(); 
-      button.addEventListener('click', async () => +    document.execCommand('copy'); 
-          try { +}
-              await navigator.clipboard.writeText(textarea.value); +
-                } catch (err) { console.error(err.name, err.message);} +
-                })+
 </script> </script>
 </body> </body>
notes.1759865621.txt.gz · Last modified: by admin