I need to use the copy()
function for my website, which I found can be used in the console of Webkit browsers but not in the markup of my page. So what I wanted to ask is, how do I write some javascript code which triggers execution of code in Webkit consoles?
Thanks,
Lucas
N.B. Please comment on any misunderstandings or vague points in my question. I will strive to improve.
P.S. I got this copy()
idea from here: Secret copy to clipboard Javascript function in Chrome and Firefox?