IE中我知道用parent.函数()
但是Firefox中就不知道怎么写。。
我的父窗口中的函数function skip()//用来被iframe调用
{
window.location.href('Popup_test.aspx');
}子窗口中 Label Lb_Message = new Label();
Lb_Message.Text = ("<script language= 'javascript'>parent.skip(); </script> "); Page.Form.Controls.Add(Lb_Message);接下来改呢
但是Firefox中就不知道怎么写。。
我的父窗口中的函数function skip()//用来被iframe调用
{
window.location.href('Popup_test.aspx');
}子窗口中 Label Lb_Message = new Label();
Lb_Message.Text = ("<script language= 'javascript'>parent.skip(); </script> "); Page.Form.Controls.Add(Lb_Message);接下来改呢
parent.frames[0].document.getElementById("").innerHTML
parent.frames[0].document.getElementById("").textContent
是一样的。是你的语句错导致的
window.location.href='Popup_test.aspx';即可没有window.location.href('Popup_test.aspx');这样的写法
window.location.href='Popup_test.aspx';
window.location.href=''等号