Functions in Javascript
Functions in Javascript
Functions:
A JavaScript function is a block of code designed to perform a particular task
Function Invocation
The code inside the function will execute when "something" invokes (calls)
the function:
m,,,,,,,,,,,,,,,,,,,vcvmbv,n
,mnbv,mnbv,mnbv,mnbv,mnbv,mnbv,mnbv,mnbv,mnbv,mnbv,mnbv,
mnbv,mnbv,mnbv,mnbv,mnbv,mnbv,mnbv,mnbv,mnbv,mnbv,mnbv,m
nbv,mnbv,mnbv,mnbv,mnbvvbbbbbbbbbbbb
DOM methods are actions you can perform (on HTML Elements).
DOM properties are values (of HTML Elements) that you can set or
change.
getElementsByName() returns all the elements having the given name value.
getElementsByTagName() returns all the elements having the given tag name.
getElementsByClassName() returns all the elements having the given class name.