molily: Browserweiche / Featureweiche für abbr-Unterstützung

Beitrag lesen

Hallo,

da gibts nen kleinen Trick:

<html><head>  
<script>  
[code lang=javascript]document.createElement("abbr");  
window.onload = function () {  
 document.getElementsByTagName("abbr").item(0).onmouseover = function () {  
  alert(this.innerText);  
 };  
};

</script>
</head>
<body>
<abbr>Hello!</abbr>
</body></html>[/code]

angelehnt an http://ejohn.org/blog/html5-shiv/

Mathias