<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2654.45">
<TITLE>JavaScript behavior in Konqueror</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Hi,</FONT>
</P>
<P><FONT SIZE=2>Could someone please kindly tries the following example in Konqueror ?</FONT>
</P>
<P><FONT SIZE=2><html></FONT>
<BR><FONT SIZE=2><body></FONT>
</P>
<P><FONT SIZE=2><script></FONT>
<BR><FONT SIZE=2>function f1() {</FONT>
<BR><FONT SIZE=2>alert('calling f1().');</FONT>
<BR><FONT SIZE=2>}</FONT>
</P>
<P><FONT SIZE=2>// does not call f1 after the page is loaded in IE</FONT>
<BR><FONT SIZE=2>var onload = f1;</FONT>
<BR><FONT SIZE=2>alert("end script");</FONT>
</P>
<P><FONT SIZE=2></script></FONT>
</P>
<P><FONT SIZE=2></body></FONT>
<BR><FONT SIZE=2></html></FONT>
</P>
<P><FONT SIZE=2>In IE, the function f1 will not execute, but in Mozilla it does. </FONT>
<BR><FONT SIZE=2>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".</FONT></P>
<P><FONT SIZE=2>Could someone please tell me what does Konqueror do? using the IE approach or the Mozilla approach?</FONT>
</P>
<P><FONT SIZE=2>Thanks.</FONT>
</P>
<P><FONT SIZE=2>Sam</FONT>
</P>
</BODY>
</HTML>