Posted By

rolandog on 07/09/06


browser detection engine khtml konqueror

Versions (?)

Who likes this?

3 people have marked this snippet as a favorite


Konqueror Browser OR KHTML Engine Detection

 / Published in: JavaScript

This is a way to determine if the browser uses the KHTML engine or if it is the Konqueror Browser.

  1. //KHTML engine?
  2. var is_khtml = (navigator.vendor == 'KDE')?true:false;
  3. //Konqueror?
  4. var is_konq = (navigator.vendor == 'KDE')||(document.childNodes)&&(!document.all)&&(!navigator.taintEnabled)?true:false;
  5. //KHTML or Konqueror?
  6. var is_k = (is_khtml || is_konq);

Report this snippet  

You need to login to post a comment.