i am giving my answer to my question. The fireworks does not support focus event on table or div elements. ie7 does. That is way i get problem. Here is text code below. You can test it by clicking div and table elements. If it works you will get an alert (ie7 only) Fireworks and opera shows alert only you click on input element.
<html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> <script type="text/javascript"> var _focusedElement; $(document).ready(function() { $("*").bind("focus", function(e) { alert(this.id); _focuedElement = this; }).bind("blur", function(e) { _focuedElement = null; }); }); </script> </head> <body> <div id="div1" style="border:1px solid #ccc;width:200px;height: 200px;"> sdxsdxs <br /> sdxsdxs <br /> sdxsdxs <br /> sdxsdxs <br /> <div id="div2" style="background:#ff0000;"> denemeeee denemeeee denemeeee </div> </div> <br /> <br /> <table width="200" id="table1" style="border:1px solid #ccc;width: 200px;height:200px;"> <tr> <td>aaaaaaaa</td> </tr> <tr> <td>aaaaaaaa</td> </tr> <tr> <td id="td1" style="background:#ff0000;">aaaaaaaa</td> </tr> </table> <input type="text" value="wwww"> </body> </html> On Jun 16, 11:23 am, MadeOfRose <mehmetgul...@gmail.com> wrote: > This code works on ie7, but it does not work on firefox. > it just shows a alert when focus occur on an element. you can just > click something on the page > and you will see alert at ie7. > > var _focusedElement; > $(document).ready(function() { > $("*").bind("focus", function(e) { > alert(this.id); > _focuedElement = this; }).bind > ("blur", function(e) { > > _focuedElement = null; }); > > });