/ Published in: JavaScript

This is a way to determine if the browser uses the KHTML engine or if it is the Konqueror Browser.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//KHTML engine? var is_khtml = (navigator.vendor == 'KDE')?true:false; //Konqueror? var is_konq = (navigator.vendor == 'KDE')||(document.childNodes)&&(!document.all)&&(!navigator.taintEnabled)?true:false; //KHTML or Konqueror? var is_k = (is_khtml || is_konq);
Comments
