Close the last opened window before opening a new one

If you don't want to open 666 windows, you could try to close the last one opened before opening a new one. Remember: You have to use the same method to open the first window, though there is nothing to close. on(release){ url = "test.html"; windowname = "mywindow"; windowparms ="width=300,height=400"; getUrl("javascript:if(typeof(lastwindow) != 'undefined') lastwindow.close(); lastwindow = window.open('" + url + "','" + windowname + "','" + windowparms + "');void(0);"); }
vhin Date: 19/09/2001

Hi. From a flash button inside an HTML, how can I close a the same HTML Window using the button? Thanks.
Add comment
Home