Document Object Model: Difference between revisions

Content deleted Content added
Internal link
Tags: Visual edit Mobile edit Mobile web edit Advanced mobile edit
Internal link
Tags: Visual edit Mobile edit Mobile web edit Advanced mobile edit
Line 45:
JavaScript was released by [[Netscape Communications]] in 1995 within Netscape Navigator 2.0. Netscape's competitor, [[Microsoft]], released [[Internet Explorer 3|Internet Explorer 3.0]] the following year with a reimplementation of JavaScript called JScript. JavaScript and JScript let [[web developer]]s create web pages with [[client-side]] interactivity. The limited facilities for detecting user-generated [[Event (computing)|events]] and modifying the HTML document in the first generation of these languages eventually became known as "DOM Level 0" or "Legacy DOM." No independent standard was developed for DOM Level 0, but it was partly described in the specifications for [[HTML4|HTML 4]].
 
Legacy DOM was limited in the kinds of [[HTML element|element]]s that could be accessed. [[Form (web)|Form]], [[Hyperlink|link]] and image elements could be referenced with a hierarchical name that began with the root document object. A hierarchical name could make use of either the names or the [[Sequence|sequential index]] of the traversed elements. For example, a [[Text box|form input element]] could be accessed as either <code>document.myForm.myInput</code> or <code>document.forms[0].elements[0]</code>.
 
The Legacy DOM enabled client-side form validation and simple interface interactivity like creating [[tooltip]]s.