Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<script language="JavaScript" for="window" event="on

Status
Not open for further replies.

silversurfer

Programmer
Nov 8, 2000
19
0
0
GB
<script language=&quot;JavaScript&quot; for=&quot;window&quot; event=&quot;onload&quot;>

Can anybody explain to me what the

for=&quot;window&quot; event=&quot;onload&quot;

line means/does?
I use it in a html page which recieves data from an asp generated xml page.
I load the data as following

xmldso_list.XMLDocument.load(&quot;data.asp&quot;)

if I haven't got the
for=&quot;window&quot; event=&quot;onload&quot;
bit in, xmldso_list won't be defined.

I guess the atttributes are essential for the databinding, but can someone explain exactly how?

 
that means the function fires when the window loads
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top