Why isn't the copy function working? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why isn't the copy function working?

https://code.sololearn.com/WZZXO21ZNlbp/?ref=app

14th Jul 2018, 3:44 PM
B.D
B.D - avatar
3 Answers
+ 4
Function select() only works on input tag. Create an temp input and put it outside of viewport. Copy style text into that input and exec copy. https://code.sololearn.com/WiCveHSYxuzq/?ref=app
15th Jul 2018, 4:36 AM
Calviղ
Calviղ - avatar
+ 1
thank you
15th Jul 2018, 6:23 AM
B.D
B.D - avatar
0
how can I do that then?
14th Jul 2018, 5:19 PM
B.D
B.D - avatar