I've developed a popup window and the client wanted it to be modal, so I added onBlur="self.focus();" to the body tag of the ASPX page. On this page, I have a radio button group, a textbox and a button, all ASP web controls. Clicking the radio buttons and the
button are fine, work perfectly. Clicking on the textbox puts the cursor in there fine, but when I try to type anything into the box, the cursor disappears. Admittedly without much testing, it looks to me like the self.focus is being fired when I type something
into the textbox (not when I click on it to set the focus there, just the typing). Has anyone come up against this and fixed it? Or better still, is there a nice, clean, simple, cross-browsery way of creating modal windows (in web forms) Thanks
mpgalvin
Member
345 Points
69 Posts
onblur event triggered by textbox
Apr 16, 2004 04:00 PM|LINK