<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="de-DE"><head>
<title>Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script src="foo.js" type="text/javascript" />
<script type="text/javascript">
function alertNow() {
alert('bar');
}
</script>
</head>
<body onLoad="alertNow();">
<p>Testseite</p>
oder
<p><a href="#" onClick="alertNow();">Klick hier</a></p>
</body>
</html>