a.html用window.open打开b.html,在b.html让a.html跳转,并关掉b.html,为什么parent.opener在ie8和火狐可以,但是ie6和ie7不可以???能不能给个兼容ie6-8和火狐的a.html<html>
<head>
<script>
function abc()
{
window.open('b.html', 'oauth2Login' ,'height=525,width=585, toolbar=no, menubar=no, scrollbars=no, status=no, location=yes, resizable=yes');
}
</script>
</head>
<body>
<input type="button" onclick="abc()"/>
</body>
</html>
b.html
<html>
<head>
<script>
function abc()
{
parent.opener.location = "http://www.baidu.com";
window.close();
}
</script>
</head>
<body>
<input type="button" onclick="abc()"/>
</body>
</html>