if (window.parent.frames['scripts1']) {
if (window.parent.frames['scripts1'].document.documentElement) {
var strSCRIPT = window.parent.frames['scripts1'].document.documentElement.textContent;
if ((strSCRIPT.lastIndexOf('bbbbEND') - strSCRIPT.length) != -7) {
window.parent.frames['scripts1'].document.location.href = 'test1.txt?refresh=' + Date();
}
} else {
window.parent.frames['scripts1'].document.location.href = 'test1.txt?refresh=' + Date();
}
}
我已经尝试了很多东西,但在为跨浏览器编写东西方面没有成功。