Gunnar Bittersmann: Browserweiche für JavaScript? (Keine CSS-Browserweiche!)

Beitrag lesen

@@ChrisB:

und dazu noch erst onload verfuegbar.

Schon früher:

<body>  
  <script type="text/jscript">  
[code lang=javascript]/*@cc_on  
[code lang=javascript]alert(document.body.currentStyle.borderColor);

@*/[/code]
  <script>
  <p>Lorem ipsum dolor sit amet.</p>
</body>[/code]

Live long and prosper,
Gunnar

--
Erwebsregel 208: Manchmal ist das einzige, was gefährlicher als eine Frage ist, eine Antwort.