DHTML Window Close Button/Back Button
1) Script Title: DHTML Window Widget
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ndow/index.htm
Problem: I am using DHTML windows for my image gallery and the problem that I am having is with the browser back window. If you click on a thumbnail and the dhtml window opens and you click through the images, the browser records all of the dhtml windows but when you click the browser's back button, the dhtml window closes and when you keep hitting back button, the main page keeps loading with no dhtml window. This is really confussing to the user.
I would either like when you hit the back button that it keeps the dhtml window open and goes through the dhtml windows that were open or, just have the back button not record all of the dhtml windows that have been open when a user clicks through pics. The second choice would be the best. I would perfer that the back button be disabled when the dhtml window is opened so that all of the clicks through the dhtml window images are not recorded.
The problem only occurs if you click through the dhtml windows and then close the dhtml window and the hit the back button. After you close the dhtml window and hit the back button, you have to hit the back button as many times as dhtml windows that you have gone through without the dhtml windows showing.
That's why I always use window.open instead of an iframe if the external file contains links (especially when those links cannot be controlled). The explanation of the problem is that the browser cannot distinguish between history entries belonging to the main page(s) and entries belonging to an iframe.
I'm afraid this problem cannot be solved. (But who knows?).