内嵌的textbox.htm 
 <script language="javascript">
        document.write ('<iframe  src="/esoa/components/editor/textbox.htm" id="Message" width="100%" height="350" style="BACKGROUND-COLOR: white;" ></iframe>')
            frames.Message.document.designMode = "On";
  </script>
当执行【 frames.Message.document.designMode = "On"】后,就不能够弹出对话框了(textbox.htm源代码在下方),点击textbox.htm的时候才能触发一个事件?(注:在代码执行【 frames.Message.document.designMode = "On"】后)附“textbox.htm”源代码
<HTML><HEAD><TITLE>webedit</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK
href="/Css/bbs3.css" type=text/css rel=stylesheet>
<STYLE type=text/css>BODY {
FONT-SIZE: 9pt
}
</STYLE>
<script>
document.onclick=function(){alert("点击");};
</script>
<BODY class=black9 text=#000000 bgColor=#ffffff leftMargin=3 topMargin=3
marginheight="0" marginwidth="0"><p></p></BODY></HTML>

解决方案 »

  1.   

    自己顶下,点击textbox.htm的时候,触发一个事件,到底应该怎么做呢??(注:在代码执行【 frames.Message.document.designMode = "On"】后)
      

  2.   

    You cannot execute script when the value of the designMode property is set to On
      

  3.   

    不知道你要实现什么效果啊?你可以给外边的绑定个单击事件,然后关闭内嵌页面的designMode
      

  4.   

    不知道你要实现什么效果啊?你可以给外边的也没绑定个单击事件,然后关闭内嵌页面的designMode