JavaScript behavior in Konqueror

Samuel Cheung SCheung at Novarra.com
Sat Sep 13 14:07:28 CEST 2003


Hi,

Could someone please kindly tries the following example in Konqueror ?

<html>
<body>

<script>
function f1() {
alert('calling f1().');
}

// does not call f1 after the page is loaded in IE
var onload = f1;
alert("end script");

</script>

</body>
</html>

In IE, the function f1 will not execute, but in Mozilla it does. 
So I think in IE, "var onload = f1;" does not update the "onload" attribute
of the window object, but in Mozilla it does go ahead and update the
"onload" attribute even the variable is declared with "var".

Could someone please tell me what does Konqueror do? using the IE approach
or the Mozilla approach?

Thanks.

Sam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/konq-e/attachments/20030913/7c6864f6/attachment.htm


More information about the konq-e mailing list