abhinav007 0 Newbie Poster

I have a parent and child window.

the parent window contains an array parentArray.

this is the parent window:


Code:
<html>
<header>
<script language="javascript">

var parentArray = Array();
...

</script>
</header>
...
</html>the child window looks like this:


Code:
<html>
<header>
<script language="javascript">

function cutArray(){

window.opener.parentArray.splice(1,1);
}
</script>
</header>


<body onunload="cutArray()">

</body>
</html>
the parent window opens the child window. the child window can access the parent's array by: window.opener.parentArray

When the user closes out the child window, onunload calls cutArray() and splices parentArray of the parent window.

on FF this works fine but on IE, I can't do the splicing. any ideas why?