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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

window.onload

Status
Not open for further replies.

natusik

Technical User
Joined
Oct 19, 2000
Messages
3
Location
US
Can someone explain the difference in outcome of these two:

Code:
window.onload=Draw(obj)
and
Code:
<script Language=&quot;JavaScript&quot; FOR=&quot;window&quot; EVENT=&quot;onLoad()&quot;>
Draw(obj)
</script>
 
I don't believe the latter example will work in Netscape.

nick bulka

 
It is far easier to put an onLoad event into body tag
ie: body onLoad=&quot;draw(obj);&quot; -----------------------------------

Evil lurks in the net in the guise of protocols.

clarityclaire@optushome.com.au
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top