childNodes problem in FF !!!

Posted by & filed under Java script.

I was working with js and got a peculiar problem (it’s was unknown to me ) about childNodes count in firefox and opera. Internet explorer showed perfectly. suppose my html is like Now the js: Here childNum will give diff values for diff browser. FF, Opera counts the whitespaces . textnodes as child but IE… Read more »

Detect browser name and version using js

Posted by & filed under Java script.

I was trying to detect browser version and browser name using java script. I got so many techniques but I am happy with jquery’s one. It’s pretty simple and small block of code. Just check the bellow code that I got from jquery. As it is not possible to use the whole js library all the time but I like to use some part of it or follow the techniques for cross browser tasks. :D