Version: (using KDE KDE 3.1) Installed from: Mandrake RPMs OS: Linux I tested a very simple script that causes a complete window reload when the window receives the focus. The script works fine in Netscape Navigator, Mozilla 1.3 and in Microsoft Internet Explorer, but when I try it in Konqueror (version 3.0 and 3.1), nothing works! I have made some tests and I have verified that the JavaScript "onfocus" event handler doesn't work with this script! I include the script: <html> <head> <title>Test</title> <script type="text/javascript"> <!-- var finestrafocus=true; //--> </script> </head> <body onblur="finestrafocus=false" onfocus="if (!finestrafocus) {window.location.reload();}"> ...BODY OF THE PAGE... </body> </html> I tried to put the "document" object before the "location" object, to delete the "<!--" and "//-->" comment signs, to replace the "type" attribute with the "language" one (removing the following "text/") and to write the handler with the "F" in capital letter, but the script doesn't still work. Other event handlers like onmouseout, onmouseover, onblur and onload works fine. The onfocus event works, for example, if I tell it to write a string into a text field, but with this script it seems not working. Also, if I set a text field with a read-only property (onfocus="this.blur()"), the code doesn't work. The same thing happens when I put the onfocus into the BODY tag
Created attachment 10149 [details] test case Confirmed with 3.4rc1
Is this bug still present in a recent KDE version, such as 3.5.9 or 4.0.1?
Yes, I can still reproduce this bug
On 3.5.9 and trunk r793971 neither onblur nor unfocus work.
Created attachment 24220 [details] testcase Shows onclick, onblur and onfocus events in the document window.
Confirmed on trunk r793971.
Seems to be still a bug in 4.5.4
Thank you for the bug report. As this report hasn't seen any changes in 10 years or more, we ask if you can please confirm that the issue still persists. If this bug is no longer persisting or relevant please change the status to resolved.