问题:javaScript里对iFrame动态跳转时,document.getElementById(ID).location.href=url;
IE无问题,FireFox提示location为null。
解决方法:将document.getElementById(ID).location.href=url;改为document.getElementById(ID).contentWindow.location.href=url;
问题:javaScript里对iFrame动态跳转时,document.getElementById(ID).location.href=url;
IE无问题,FireFox提示location为null。
解决方法:将document.getElementById(ID).location.href=url;改为document.getElementById(ID).contentWindow.location.href=url;