R
R
Rafael™2016-10-13 15:01:18
JavaScript
Rafael™, 2016-10-13 15:01:18

Is it possible to copy a string to the system clipboard?

var строка = "текст"             
var кнопка_копировать   //кнопка для запуска копирования
var кнопка_вставить   //кнопка для запуска вставки

there is no text selection on the page - there are only two buttons - you need to copy and paste
when you press the corresponding button to copy / paste a line of text from a variable to the system clipboard and back
as simply as possible, without libraries,
or is it fundamentally impossible?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Peter, 2016-10-13
@petermzg

clipboardData

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question