Parantatatam
mag Cookies & Kekse
Versuch es einfach mal so:
HTML:
<!DOCTYPE html>
<html>
<head>
<title>webseite</title>
<script type="application/javascript">
if(!window.addEventListener) {
if(window.attachEvent) {
window.addEventListener = function (event, callback) {
window.attachEvent('on' + event, callback);
}
} else {
window.addEventListener = function (event, callback) {
window['on' + event] = callback;
}
}
}
window.addEventListener('load', function () {
alert(!!window.handleEvent);
}, false);
</script>
</head>
<body>
</body>
</html>