How can I count open browser windows in IE (opened by CTRL N for example)? My current solution is preventing the browser from caching and checking if the name property of the window object is empty. But this method has the disadvantage that the browser's forward button does not always do what you expect. Can anybody help me?