Forum Moderators: open

Message Too Old, No Replies

IE7 - scrollbar use causes pop-up to lose focus

         

tedster

1:04 am on Feb 16, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just stumbled over this surprise. For 7 years, one of my sites has used pop-up windows to show enlarged product photos. Because those pop-up pages sometimes get direct traffic, I include some copy below the photo.
In some cases this content generates a vertical scrollbar for the pop-up. Not a problem so far.

Many users in the early days mentioned not liking the "pile of pop-up windows" that accumulated under the main window as they shopped the site. So I added some jscript to the body tag [onBlur="self.close()"] to close the window when it loses focus... and the complaints stopped.

Now I just discovered that in IE7 when I try to use the scrollbar, the pop-up window will self-close. This is new -- and I think buggy -- behavior. Or am I missing something?

RonPK

9:55 am on Feb 16, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Bad thing, IMHO. Web authors should not be able to attach event handlers to the scrollbars. Users should be able to use the scrollbars without triggering any script on the page.