[thelist] what is JavaScript?
benjamin deboute
deboute at nerdsoul.com
Tue Jun 20 07:30:53 2000
javascript expurged ::
when viewed through a browser, a web page is composed of underlying
elements which appears to have attributes.
i.e :: an image [ <img tag ] has the src attribute that contains the url of
the image file.
Client-side Javascript allows the client [ read browser ] to interact with
these elements and modify their attributes.
i.e :: rolling over an image changes its src.
Javascript calls the Document Object Model [ the structure of the page
created by the elements tree ] to perform its magic.
Each element is the father or the child of another element and the top
element of a document is 'document'.
i.e :: an image src property in a div is called by
document.div["name"].image["name"].src
Javascript, due to browser inconstancy is HELL ! ! !
NEVER start to learn code cause U'll be trapped in a code addict nightmare
and you'll dream of browser bugs ev'ry night.