How can I mimic CTRL+A, CTRL+C in WebBrowser Control through COM or JavaScript? -
how can mimic ctrl+a, ctrl+v in webbrowser control automatically via com?
alternatively, there way of simulating behaviour using javascript?
i looked on , seems way put data clipboard use setdata()
method of clipboarddata
object, end html being interpreted text. need put entire webpage clipboard can pasted ms word.
this answer discovered op , posted update question. moving here semantics.
here's solution in javascript (can used through com well):
window.document.execcommand('selectall',true); window.document.execcommand('copy',true); window.document.execcommand('unselect',true);
Comments
Post a Comment