moin martin,
stimmt, Element-> s <-.
habe ich wohl übersehen....
<script type="text/javascript">
function swap()
{
a=document.getElementsByTagName("div")[0];
a.style.fontSize="200%";
alert(a);
}
</script>
<div><p>ein div</p></div>
<input type="button" onclick="swap()" value="klicken" />