JavaScript Programmer’s Reference You cannot force a garbage (Web and email hosting)

JavaScript Programmer’s Reference You cannot force a garbage collection in a JavaScript execution session in a web browser other than by setting the location.hrefof the current page to itself. This has the side effect of reloading the page from the web server, presenting the user with a possibly ugly transition artifact and increasing net traffic. However, this may be far more preferable than consuming 50 Megabytes of memory every few minutes in the client. See also: Garbage collection, Memory leak MENU object (Object/HTML) An object that represents the contents of a

tag. Availability: DOM level 1 JavaScript 1.5 JScript 3.0 Internet Explorer 4.0 Netscape 6.0 Inherits from: Element object IE myMENU = myDocument.all.anElementID IE myMENU = myDocument.all.tags(”MENU”)[anIndex] IE myMENU = myDocument.all[aName] -myMENU = myDocument.getElementById(anElementID) -myMENU = myDocument.getElementsByName(aName)[anIndex] JavaScript syntax: -myMENU = myDocument.getElementsByTagName(”MENU”)[anIndex] HTML syntax: anIndex A reference to an element in a collection aName An associative array reference Argument list: anElementID The ID value of an Element object Object properties: compact Event handlers: onClick, onDblClick, onDragStart, onFilterChange, onHelp, onKeyDown, onKeyPress, onKeyUp, onMouseDown, onMouseMove, onMouseOut, onMouseOver, onMouseUp, onSelectStart The DOM level 1 specification refers to this as a MenuElement object. See also: Element object Property JavaScript JScript N IE Opera DOM HTML Notes compact 1.5 + 3.0 + 6.0 + 4.0 + 1 + - 1428

Leave a Reply