采用:
document.getElementById("resultframe").contentWindow.Reset();访问iframe中的重置功能
document.getElementById("resultframe")将在您的代码中获取iframe,并在iframe中contentWindow获取window对象。拥有子窗口后,您可以在该上下文中引用javascript。

采用:
document.getElementById("resultframe").contentWindow.Reset();访问iframe中的重置功能
document.getElementById("resultframe")将在您的代码中获取iframe,并在iframe中contentWindow获取window对象。拥有子窗口后,您可以在该上下文中引用javascript。