Javascript onDOMContentLoaded not starting
Any ideas why this code is not working?
<html><head>
<script type="text/javascript">
document.onDOMContentLoaded=function(){
alert('aaaaaaaaaaaaaa');
}
</script>
</head>
<body>
<div id="mydiv"></div>
</body>
</html>
onDOMContentLoaded is expected to trigger when the webpage loads and this warning appears, but it doesnβt work for a reason, why
+5