0
是否有可能获得先前的父窗口的ID,如果你有document.location.href="diffPage.htm?name="+string;
,其中字符串将每一次改变推出的子窗口?的document.getElementById在另一个窗口
基本上我有与id=favouritesTab
是去调用一个函数时diffPage.htm主窗口,叫main.html中。
我试图window.parent.document.getelementById()
如
var favouritesScreen = window.parent.document.getElementById('favouritesTab');
if(favouritesScreen.style.display == 'inherit')
{
..so on
但它似乎并没有在所有的工作。有谁知道这是否有解决方案?