<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<script  type="javascript">
var newWindow
Function makenewWindow ()
 {
   newWindow=window.open("","","status,heigh=200,width=300")
      }
Function subwrite(){
if (newWindow.close)
{
makenewWindow ()
}
newWindow.focus()
{
var newcontent="<html><head><title>这是新的</title></head>"
newcontent +="<body bgclor='coral'><h1>这是新的这是新的</h1>"
newcontent +="</body></html>"
newWindow.docement.write(newcontent)
newWindow.colse()
}
</script>
</head>
<body onload="makenewWindow()" >
<p><a href="32.htm"  onmousemove="window.status='http://www.163.com';return true">5555555</a></p>
<form><input name="Submit1" type="submit" value="提交" style="width: 97px" onclick="subwrite()" /></form>
</body></html>

解决方案 »

  1.   

    参考:var printStr = "<title>文章打印</title>";
    printStr += "<table id=\"showArticle\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"#FFFFFF\">";
    printStr += "<tr><td>test</td></tr>";
    printStr += "</table>";
    var a = window.open("about:blank",null,"toolbar=yes,left=0,top=0");
    var abody = a.document.open();
    abody.write(printStr);
    abody.close();