Helmut Kuhn: window.open() Netscape 6.2 height

Hallo Leute.

Gerne durchgrase ich das selfhtml, diesmal habe ich keinen Hinweis für den Netscape 6.2 oder mozilla gefunden.

Ich möchte ein neues Fenster öffnen window.open(), die Abm. sollen mit height und width eingeschränkt werden.

Beim Netscape 6.2 oder mozilla klappt das nicht. Bitte um Hilfe!

.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=500,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");
  }
 }
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;
   }
 }
.htm
<html>
<head>
<title>links</title>
<LINK REL="Stylesheet" TYPE="text/css" HREF="css/style.css">
</head>
<body>
<table>
 <tr><h2>Links&#058;</h2>
 </tr>
 <tr>
  <td><a href="galerie.htm" name="galerie">Galerie</a></td>
 </tr>
 <tr>
  <td><a href="triathlon.htm" onclick="plainWindow();return false;" name="triathlon" target="_blank">Triathlon</a></td>
 </tr>
</table>
<script language="JavaScript" src="js/plainWindow.js">
</script>
</body>
</html>

.css
<!--
h1,h3,h4
  {
   color:   #FFFFFF;
   font-size:  13px;
   padding:  3px;
   font-family:  Tahoma,Arial,Helvetica;
   font-weight:  700;
   text-decoration: none;
  }
h2
  {
   color:   #FFFFFF;
   font-size:  15px;
   padding:  3px;
   font-family:  Tahoma,Arial,Helvetica;
   font-weight:  700;
   text-decoration: none;
  }
a
  {
   color:   yellow;
   font-family:  Tahoma,Arial,Helvetica;
   font-size:  10px;
   text-decoration: underlined;
  }
body
  {
   background-color: #203080;
  }
font
  {
   font-color:  #FFFFFF;
  }
table
  {
   font-color:  #FFFFFF;
   color:   #FFFFFF;
  }
frame
  {
   border:   0;
   frameborder:  0;
  }
-->

  1. 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;
       }
     }

    //-->

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

      SO kann man das jetzt aber noch vereinfachen...

      if(document.layers){ // 100%ige NN4-Erkennung
      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");
      }

      ...wobei selbst diese Weiche sinnlos wäre - es ist Netscape 4 egal, ob nun width oder outerWidth - und andere Browser haben diesen Unterschied afaik gar nicht.

      Grüße aus Bleckede

      Kai