iframe的document.designMode="on"情况下,怎样判断选择的是哪个?

来源:百度知道 编辑:UC知道 时间:2024/06/08 06:58:17
a.htm:
<body>
<input value=AA>
<br>
<input value=BB>
</body>
-----------------------------------------------
b.htm:
<body>
<iframe id="gb" marginheight="1" marginwidth="1" width="100%" height="550" frameborder="1" src=a.htm></iframe>

<script>gb.document.designMode="On";</script>

</body>
-----------------------------------------------
请问当我选择住第一个inputText的时候,通过一个什么事件才能得到选中的inputText的值呢?
什么onclick、onmouseOver、onmousedown等等之类的常见的事件我全试过了,全都不行。到底应该怎么办呢?已经被折磨大半天,求救啊。。。。。
萨依法,你说的我知道,我要的效果就是那个。

为什么设置document.designMode="On" ?
这样 可以随便在那个document里面打字
再往里面复制图片,增加或者删除控件
你的那个 textField也可以删除掉