So, the following code warns a lie twice:
window.onload = function(){ alert(window.myframe.myarray instanceof Array); alert(window.myframe.myarray.constructor === Array); }
When the page named "myframe" has an iframe that contains an array called "myarray". If the array moves to the main page (unlike the iframe), then the code warns true twice as expected. Does anyone know why this is?
zjmiller
source share