// Client side Javascript by Sandeep Desai (http://www.thedesai.net) // all global variables are stored in window object // DOM Level 0 W3C standard /* window +- self, window, parent, top properties +- navigator +- frames[] +- location +- history +- screen +- document +- anchors[] +- links[] +- images[] +- applets[] +- embeds[] +- forms[] +-- array of HTML objects (Button, CheckBox, FileUpload (Hidden, Password, Radio, Reset, Select, Submit, Text, TextArea) Select has options[] object */ // use Javascript snippets anywhere in HTML // // // type tag may not work with all browsers // // Specify in
that we use only JavaScript language in this HTML // // When writing // tell Browser that code does not add any content // May improve performance while rendering page // // include javascript by // Javascript in URLs, with the URL below Javascript code is executed // and the output of the last statement is dispalyed if not output returned // current document is not modified // Javascript in URL is useful in places where we don't have events // can be use in href of hyperlink or form // javascript: var now = new Date(); "