Click to See Complete Forum and Search --> : i have a question...


Sexay_Hamster
11-26-2003, 09:14 AM
im just learning javascript and i was just wondering if u have to capitalize in functions... like do you have to capitalize the M in onMouseover or can it be lower case... cuz i noticed theres caps in all the examples i saw and am wondering if they have to be capitalized or not.

Gollum
11-26-2003, 09:20 AM
Javascript is case sensitive and functions tend to start with lower case letters with the first letters of words capitalised after that.

HTML on the other hand is not case sensitive and so this is why you might see things like <img onclick="blah();"> and so on.

Sexay_Hamster
11-26-2003, 09:51 AM
ok...

thanks :)

AdamGundry
11-26-2003, 11:38 AM
Note that XHTML (the new generation of HTML) IS case sensitive.

Also, in case you are interested, Javascript usually follows the Java naming conventions, which you can find here: http://java.sun.com/docs/codeconv/html/CodeConventions.doc8.html

Adam