• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Q&A

Q1:I've heard the term “object-oriented” applied to languages such as C and Java. If JavaScript supports objects, is it an object-oriented language?
A1: Yes, although it might not fit some people's strict definitions. JavaScript objects do not support all of the features that languages such as C and Java support.
Q2:Having several scripts that execute at different times seems confusing. Why would I want to use event handlers?
A2: Event handlers are the ideal way (and in JavaScript, the only way) to handle gadgets within the Web page, such as buttons, check boxes, and text fields. It's actually more convenient to handle them this way. Rather than writing a script that sits and waits for a button to be pushed, you can simply create an event handler and let the browser do the waiting for you.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint