这样改了一下,你看下行不?
<html>
<head>
<title>Html</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="CSS.css" type="text/css">
<script>
function changeBgcolor(thisObj,thisClass) {
thisObj.style.cursor="default";
thisObj.className=thisClass;
}
function command_back() {
history.go(-1);                //去掉前面多余的对像
}
function command_forward() {
history.go(1);                //去掉前面多余的对像
}function command_stop() {
document.execCommand("Stop","topp","");
}function command_refresh() {
document.execCommand("Refresh","topp","");
}
function Message_onkeydown() {var iekey=event.keyCode;
   if (iekey==13){ 
    previewurl();
   }
}
function previewurl()
{
 if (url.value.length==''){
   return false;
 }
 else{
   document.topp.location.href = "http://"+url.value;
 }
}
function senturl(){ 
  if (url.value.length=='') {
return false;
  }
else {
var urlsent='http://'+url.value;
topp.location = urlsent;       //改成location了
url.value='';
}
}</script>
</head>
<body bgcolor="#FEFFF6" leftmargin="0" topmargin="0" >
<table width="102%" border="0" cellspacing="0" cellpadding="0" height="100%">
  <tr> 
    <td valign="top" height="15"> 
      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td bgcolor="#FEFFF6" height="24"> 
            <table width="100%" border="0" cellspacing="0" cellpadding="2">
              <tr> 
                <td width="32"> 
<img src="image/image/jy11_07.gif" width="29" height="24" onClick="command_back()">
                </td>
                <td width="32"> 
               <img src="image/image/jy11_09.gif" width="29" height="24"  onClick="command_forward()">
                </td>
                <td width="32"> 
                 <img src="image/image/jy11_11.gif" width="29" height="24" onClick="command_stop()">
                </td>
                <td width="32"> 
                    <img src="image/image/jy11_13.gif" width="29" height="24"  onClick="document.execCommand('Refresh','topp','');">  //为document对像,而不是window
                </td>
                <td width="32"> 
                    <img src="image/image/jy11_15.gif" width="29" height="24" onClick="window.open('http://www.itouch.com.cn','topp','')">
                </td>
                <td width="10"><img src="image1/line_v.gif" width="2" height="27"></td>
                <td align="center"> 
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td width="100%">推送地址:http:// 
                        <input type="text" name="url" size="35" class="input_html" onkeydown="return Message_onkeydown();">
<% if ((request.cookies("roomtype")=1) and (request.cookies("usertype")=1)) then %>
<input name="urlbutton" type="button" value="推送" onclick = "senturl()" style="BACKGROUND-COLOR: #FEFFF6;BORDER-LEFT: #999999 1px solid; BORDER-RIGHT:#999999 1px solid; COLOR: #94BF6A">
<% end if%>
<input type=hidden name=urllink >
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>
        </tr>
        <tr> 
          <td height="2" background="image1/line_shadow.gif"><img src="image1/line_shadow.gif" width="1" height="2"></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr> 
    <td valign="top" height="100%"><iframe frameborder=0 src="text.htm" name="topp" id="topp" width=100% height=100% scrolling="auto"></iframe></td>
  </tr>
</table>
</body>
</html>

解决方案 »

  1.   

    1: 改window.execCommand为document.execCommand;
    2:  可以直接利用history.go(-1)的方法来实现回退但是直接用history.go(-1)会产生的一个问题是 , 当你的页面有两个iframe时 , 回退的那个iframe不一定是你想要的那个iframe , 
    所以建议楼主利用object.focus()函数先使得您想要回退的那个iframe获得焦点,然后直接用history.go(-1)来实现选定iframe的回退 。 。