[BNM] Why dosn't IE7 work with window.onload
David Andrew
david.andrew at gmail.com
Thu Nov 13 10:25:57 GMT 2008
Hi List
Been googling for a solution why this js alert won't show in IE7
Can anyone point me at a succinct explanation why IE7 doesn't work
with window.onload?
<**code**>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<script type="text/javascript">
window.onload = function() {
alert("Hello world.")
}
</script>
</head>
<body>
foo
</body>
</html>
<**/code**>
More information about the BNMlist
mailing list. Powered by Wessex Networks