可以在摸态页里放个iframe来过度:
<script>
function Copy(){
with(parent.theFrame.document){
open();
write(document.all.tbCopy.outerHTML);
//write('<link href="DialogBasic.css" rel="stylesheet" type="text/css">')
//write('<link href="Content.css" rel="stylesheet" type="text/css">')
close();
execCommand('SelectAll');
execCommand('Copy');
execCommand('Unselect');
alert("成功复制到剪贴板!")
}
}
</script>
<TABLE height="100%" width="100%" cellSpacing=0 cellPadding=0 style="border:1px inset" id="tbCopy">
<tr>
<td height="21px"> sfsdfdsf</td>
</tr>
</table>
<input type=button value="copy" onclick="Copy()">
<iframe id="theFrame" width="0" height="0"></iframe>
<script>
function Copy(){
with(parent.theFrame.document){
open();
write(document.all.tbCopy.outerHTML);
//write('<link href="DialogBasic.css" rel="stylesheet" type="text/css">')
//write('<link href="Content.css" rel="stylesheet" type="text/css">')
close();
execCommand('SelectAll');
execCommand('Copy');
execCommand('Unselect');
alert("成功复制到剪贴板!")
}
}
</script>
<TABLE height="100%" width="100%" cellSpacing=0 cellPadding=0 style="border:1px inset" id="tbCopy">
<tr>
<td height="21px"> sfsdfdsf</td>
</tr>
</table>
<input type=button value="copy" onclick="Copy()">
<iframe id="theFrame" width="0" height="0"></iframe>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货