copy to Clipboard for IE almost working?

后端 未结 1 1819
谎友^
谎友^ 2021-02-06 00:16

Trying get this script to copy to the clipboard and not back into the page. When you click the link it should copy right to the clip board. At least that is my intention. Here a

相关标签:
1条回答
  • 2021-02-06 00:52

    there is no select()-method for td-elements.

    You may directly access the clipboard without using the Copy-command:

    window.clipboardData.setData('Text', copytext);
    

    See: http://msdn.microsoft.com/en-us/library/ie/ms536744%28v=vs.85%29.aspx

    0 讨论(0)
提交回复
热议问题