티스토리 뷰

공부

[Browser] read clipboard

승가비 2020. 5. 2. 18:22
728x90
navigator.clipboard.readText().then(
  clipText => document.getElementById("outbox").innerText = clipText);

https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/readText

 

Clipboard.readText()

The Clipboard interface's readText() method returns a Promise which resolves with a copy of the textual contents of the system clipboard.

developer.mozilla.org

 

728x90

'공부' 카테고리의 다른 글

[Python] `not in` & `diff` & `subtract` list  (0) 2020.05.02
[Hive] show create table schema  (0) 2020.05.02
[Chrome] extension Icon Manifest  (0) 2020.05.02
[Spring] boot runtime setting profile  (0) 2020.05.02
[Spring] swagger except controller  (0) 2020.05.02
댓글