Helmut Kuhn: spez. Netscape 6.2 if Abfrage?

Beitrag lesen

Habe mein Problem gelöst, aber mit der Einschränkung, dass ich den Browser nicht abfag, sondern einen else zweig dafür verwende. Leider!

.js
<!--
var DHTML = 0, DOM = 0, MS = 0, NS = 0, OP = 0;

var plain_window;
 whatbrowser();
 function plainWindow()
 {
  if(MS)
  {
  plain_window = window.open("triathlon.htm","Triathlon","width=608,height=468,resizable=yes,toolbar=yes,status=yes");
  }
  else if(NS)
  {
  plain_window = window.open("triathlon.htm","Triathlon","outerWidth=608,outerHeight=468,resizable=yes,toolbar=yes,status=yes");
  }
  else
  {
   plain_window = window.open("triathlon.htm","Triathlon","width=608,height=468,resizable=yes,toolbar=yes,status=yes");

}
 }
function whatbrowser()
 {
  if (window.opera)
  {
        OP = 1;
   }
   if(document.getElementById)
  {
      DHTML = 1;
      DOM = 1;
   }
   if(document.all && !OP)
  {
      DHTML = 1;
      MS = 1;
   }
  if (window.netscape && window.screen && !DOM && !OP)
  {
      DHTML = 1;
      NS = 1;
   }
 }

//-->