Funktion != Objekt
Funktion != Methode
Spiel mal damit rum, das dürfte Dich aufklären:
<html>
<head>
<title>Ärger mit this</title>
<script type="text/javascript">
alert('Viewport: ' + this.innerHeight + 'px * ' + this.innerWidth+ 'px');
function zeigeFarbe(objekt) {
alert(objekt.style.color);
}
</script>
</head>
<body>
<p style="color:red" onclick="zeigeFarbe(this)">Klick hier!</p>
<p style="color:blue" onclick="zeigeFarbe(this)">Klick hier!</p>
</body>
</html>