execCommand Method--------------------------------------------------------------------------------Executes a command over the given selection or text range.SyntaxbSuccess = object.execCommand(sCommand [, bUserInterface] [, vValue])
ParameterssCommand Required. String爐hat specifies the command to execute, which can be any valid command identifier.
bUserInterface Optional. Boolean爐hat specifies one of the following values: false Default. Does not display a user interface.
true Displays a user interface, if the command supports one.
vValue Optional. Variant that specifies the string, number, or other value to assign. Possible values depend on sCommand . Return ValueBoolean. Returns one of the following values: true The command was successful.
false The command was not successful. ResDo not invoke the execCommand method until after the page loads.
ParameterssCommand Required. String爐hat specifies the command to execute, which can be any valid command identifier.
bUserInterface Optional. Boolean爐hat specifies one of the following values: false Default. Does not display a user interface.
true Displays a user interface, if the command supports one.
vValue Optional. Variant that specifies the string, number, or other value to assign. Possible values depend on sCommand . Return ValueBoolean. Returns one of the following values: true The command was successful.
false The command was not successful. ResDo not invoke the execCommand method until after the page loads.
不过我是把iframe里的src 改成:
<iframe frameborder=0 src="http://www.sina.com.cn" name="topp" width=100% height=100% scrolling="auto"></iframe>
下测试没有任何问题,可以正常的刷新和停止 。 。 。
建议楼主:
1: 改src为我上面写的那样测试一下 , 如果可以的话 , 那么就是text.htm的问题 。 。
2: 如果改成src="http://www.sina.com.cn"也有问题的话 , 那么估计可能和IE ,DM有关系 。 。。
因为在我这里,测试是通过的。