<!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>&lt;html&gt;</FONT>
<BR><FONT SIZE=2>&lt;body&gt;</FONT>
</P>

<P><FONT SIZE=2>&lt;script&gt;</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(&quot;end script&quot;);</FONT>
</P>

<P><FONT SIZE=2>&lt;/script&gt;</FONT>
</P>

<P><FONT SIZE=2>&lt;/body&gt;</FONT>
<BR><FONT SIZE=2>&lt;/html&gt;</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, &quot;var onload = f1;&quot; does not update the &quot;onload&quot; attribute of the window object, but in Mozilla it does go ahead and update the &quot;onload&quot; attribute even the variable is declared with &quot;var&quot;.</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>