posted 16 years ago
Actually, there's one problem.
I have external javascript called myjavascript.js
Then when i logout in the parent page, let's call it A.html, I do this below:
The code works fine in this case:
1.) Open A.html
2.) Click a link in A.html to open "mywindow"
3.) Sign out, then I see that 'mywindow' is also closed when I click "Sign out"
But not in this case:
1.) Open A.html
2.) Click a link in A.html to open "mywindow"
3.) Reload A.html
4.) Sign out, then I see that "mywindow" is not closed when I click "Sign out"
I think it's because in step. #3, the mywindow variable is initialized to "undefined" again. How do I prevent this from happening?