Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/74.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 从父页面清除子页面中的图形(使用';数据';html标记创建)_Javascript_Jquery_Html_Window_Parent Child - Fatal编程技术网

Javascript 从父页面清除子页面中的图形(使用';数据';html标记创建)

Javascript 从父页面清除子页面中的图形(使用';数据';html标记创建),javascript,jquery,html,window,parent-child,Javascript,Jquery,Html,Window,Parent Child,我在SO见过类似但不完全相同的问题: 在我的webapp中,通过单击按钮从父窗口创建“子”窗口,并使用以下html: <div style='width:100%; height:100%'><object type="text/html" name ="mapPage" style='width:100%; height:100%' data='mapPage.html'> </object></div> 我想

我在SO见过类似但不完全相同的问题:

在我的webapp中,通过单击按钮从父窗口创建“子”窗口,并使用以下html:

<div style='width:100%;  height:100%'><object type="text/html" name ="mapPage" style='width:100%;  height:100%' data='mapPage.html'>

            </object></div>

我想从父页面运行另一个功能,单击按钮将清除子页面中的图形。我该怎么做?因为我没有使用“window.open”来创建子对象,所以我认为我不能用这种方式来处理这个问题?我也没有使用iFrame,所以我相信“window.parent”或类似的东西也不是一个选项。。。
思想?谢谢,Jason

我实际上不知道
对象
是做什么的,它像
iframe
iframe
s可以做您想做的事情,因为您可以引用文档和其中的所有元素。我们的web专家告诉我,iframe可以很好地避免跨浏览器兼容性问题和其他不一致性。。。。