stephan: onresize und Firefox

Beitrag lesen

Ich habe hier mal folgenden Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
<title>Unbenanntes Dokument</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/JavaScript">

function test()
{
 alert('hallo');
}

window.onresize = test();
</script>
</head>

<body>
</body>
</html>

Das window.onresize funktioniert nicht. Was mache ich falsch?
Danke

stephan