对于任意一网址那是做不到的, 因为框架不支持跨域操作, 即A网站的主页面在框架里操作不了B网站的页面, 对于同一个域里的网页可以用:
window.frames["iframeName"].document.execCommand("SelectAll");
window.frames["iframeName"].document.execCommand("Copy");
window.frames["iframeName"].document.execCommand("SelectAll");
window.frames["iframeName"].document.execCommand("Copy");
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货