以下是引用片段: <input onclick= "GetData() " type=button value= "GET Data "> <iframe name=aaa src= "c.htm "> </iframe> <script> function GetData() { window.frames[ "aaa "].focus(); textRange = window.frames[ "aaa "].document.body.createTextRange(); textRange.execCommand( "Copy "); window.frames[ "aaa "].document.execCommand( "Copy ") } </script> |
[提示:你可先修改部分代码,再按运行]