[Javascript] , or ;

Filipiak, Bob (Contractor) filipiab at atsc.army.mil
Tue Jul 17 07:57:18 CDT 2001


On one of my pages I use <BODY onload="setVariables(); checkLocation();">.
The semicolon is the JavaScript terminator but JavaScript is loosely typed
and doesn't complain if you omit it. Try your code with different browsers
and let us know what you find out.
 

Bob Filipiak (Contractor)
MCP 

-----Original Message-----
From: Andrew Dunn [mailto:adunn at mail.interworx.com.au]
Sent: Tuesday, July 17, 2001 2:24 AM
To: javascript at LaTech.edu
Subject: [Javascript] , or ;


Hi,
    I'm wondering when you call two functions from the same event ie.
onchange="function1();function2()"
 
I've used the , instead of the ; before and it seems to work.
 
Is there a difference between these when doing this?
 
Regards,
 
Andrew

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010717/d4b9ce27/attachment.htm>


More information about the Javascript mailing list