![]() now recent update build is outputting undefined again. then after some update builds it outputted to true. But play close attention to IE11, I added the check back for undefined since IE11 now outputs undefined, like it did when first released. Also thanks to Ring and Adrien Be for the heads up about Chrome 33 not returning true anymore. ![]() So I added a check to make sure the is: "Google Inc" and not is "Opera Software ASA". ![]() Looks like Opera 18 is based on Chromium 31. Thank you to Halcyon991 for pointing out below, that the new Opera 18+ also outputs to true for window.chrome. IE11 also returns a empty string "" for. But guess what, IE11 now returns undefined again. IE used to return undefined, now it returns true. You can't use strictly equals true anymore to check in IE for window.chrome. When you collapse the object you can view all the properties, including the 'chrome' property. Then you be able to view the DOM properties for the 'window object'. The reason this works is because if you use the Google Chrome inspector and go to the console tab. Var isOpera = typeof window.opr != "undefined" ![]() and new IE Edge outputs to true now for window.chrome but needs to check if window.opr is not undefined and new Opera 30 outputs true for window.chrome that IE11 now returns undefined again for window.chrome To check if browser is Google Chrome, try this: // please note,
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |