Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <textarea id="target">Paste an image here</textarea>
- <script>
- const target = document.getElementById('target');
- target.addEventListener('paste', (e) => {
- e.preventDefault();
- doSomethingWithFiles(e.clipboardData.files);
- });
- </script>
- https://web.dev/media-capturing-images/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement