Archive for October, 2007

JavaScript Programmer’s Reference The distance is measured in (Msn web hosting)

Wednesday, October 24th, 2007

JavaScript Programmer’s Reference The distance is measured in pixels and can range from zero (which is the default) to any reasonably sensible value. If a page is being created dynamically with document.write() methods, and a script error occurs, the margin is not appended. It appears to be added as a property of the body closure. This corresponds to the style.marginBottomproperty and the margin-bottom attribute that is defined in a style sheet. Warnings: . Even when this value is set to zero, the Macintosh version of MSIE has a noticeable margin at the bottom. See also: BODY.topMargin BODY.controlRange[] (Collection) A collection of all the elements within the document body. JScript 5.0 myBODY.controlRange Availability: Internet Explorer 5.0 JavaScript syntax: IE This collection is returned by the createControlRange() method. The items in this collection would all represent component elements within the page but would not include simple text items. See also: BODY.createControlRange() Property attributes: ReadOnly. BODY.createControlRange() (Method) A constructor function to create a new controlRange object. JScript 5.0 ControlRange object Availability: Internet Explorer 5.0 Property/method value type: JavaScript syntax: IE myElement.createControlRange() This method creates a collection of non-text elements. These are selectable items based on controls rather than text. If the controlRange(belonging to the BODY object) already exists, then it will be overwritten by the results of this method call. See also: BODY.controlRange[]

B BODY.bgProperties (Property) (Email web hosting) Now that the style

Tuesday, October 23rd, 2007

B BODY.bgProperties (Property) Now that the style control facilities are more sophisticated, this tag attribute is likely to fall into disuse. On the other hand it does work consistently on both MSIE and Netscape whereas style sheet controls do not. Later, a DOM-standardized approach to style handling will provide a cross- platform way to access style information from JavaScript. DOM level 2 introduces a first attempt at standardizing this area. The background can be colored whether an image is loaded into the background of a document or not. In fact, it may be advisable to set the background color to something similar to the average color of the background image in case the image takes a long time to load or the browser is unable to display a background image. The background color for the document that is defined in the tag is also reflected in the bgColor property of the document object, although that is now deprecated as of DOM level 1. See also: Color names, Color value, Document.bgColor, Document.linkColor ,HTML object BODY.bgProperties (Property) An attribute that controls the way the background image is managed when the page scrolls. Availability: JScript 3.0 Internet Explorer 4.0 Property/method value type: String primitive JavaScript syntax: IE myBODY.bgProperties The value of this property can be set to either the value “fixed” or an empty string (”"). When the “fixed” value is used, the background image (if it is specified) will be locked into position and if the page is scrolled, the background will stay fixed where it is as if it were on a separate layer. See also: Background.src, BODY.background BODY.bottomMargin (Property) A margin space at the bottom of the document in the current window. Availability: JScript 3.0 Internet Explorer 4.0 Property/method value type: Number primitive JavaScript syntax: IE myBODY.bottomMargin Normally, you would not need to specify this property. It allows the document to have some clear space at the bottom so, for example, the content could be made to scroll completely off the screen.

JavaScript Programmer’s Reference BODY.background (Property) (Yahoo free web hosting) The URL of

Tuesday, October 23rd, 2007

JavaScript Programmer’s Reference BODY.background (Property) The URL of a background image for the current document. Availability: DOM level 1 JavaScript 1.5 JScript 3.0 Internet Explorer 4.0 Netscape 6.0 Property/method value type: String primitive JavaScript syntax: -myBODY.background If a background image is available, then its URL is contained in this property. Changing the value in this property will replace the background with a new one; however, there may be a perceptible delay while the new image is fetched from the web server. The background image for the document that is defined in the tag is accessible via the BODY.backgroundproperty in MSIE. Warnings: . You cannot access the background image directly in Netscape Navigator because the BODY object is not reflected into the JavaScript environment. See also: Background.src, BODY.bgProperties, Document.background, HTML object BODY.bgColor (Property) The background color of the current page. Availability: DOM level 1 JavaScript 1.5 JScript 3.0 Internet Explorer 4.0 Netscape 6.0 Property/method value type: String primitive JavaScript syntax: -myBODY.bgColor This corresponds to the BGCOLOR=”…”HTML tag attribute on the tag. You can modify this value at any time, the result of which will be to change the background color of the page.

B BODY.aLink (Property) Event name JavaScript JScript (Starting a web site)

Monday, October 22nd, 2007

B BODY.aLink (Property) Event name JavaScript JScript N IE Opera DOM HTML Notes onKeyDown 1.5 + 3.0 + 6.0 + 4.0 + 4.0 + Warning onKeyPress 1.5 + 3.0 + 6.0 + 4.0 + 4.0 + Warning onKeyUp 1.5 + 3.0 + 6.0 + 4.0 + 4.0 + Warning onMouseDown 1.5 + 3.0 + 6.0 + 4.0 + 4.0 + Warning onMouseMove 1.5 + 3.0 + 6.0 + 4.0 + 4.0 + Warning onMouseOut 1.5 + 3.0 + 6.0 + 4.0 + 4.0 + Warning onMouseOver 1.5 + 3.0 + 6.0 + 4.0 + 4.0 + Warning onMouseUp 1.5 + 3.0 + 6.0 + 4.0 + 4.0 + Warning onRowEnter 3.0 + 4.0 + - onRowExit 3.0 + 4.0 + - onScroll 3.0 + 4.0 + - onSelectStart 3.0 + 4.0 + - onUnload 1.5 + 3.0 + 6.0 + 3.02 + Warning Inheritance chain: Element object, Node object BODY.aLink (Property) The colour of an active link in the current page. Availability: DOM level 1 JavaScript 1.5 JScript 3.0 Internet Explorer 4.0 Netscape 6.0 Property/method value type: String primitive JavaScript syntax: -myBODY.aLink This value controls the text of active links in the document body. You should use the normal color values to define the required color. This property is equivalent to the ALINKattribute of the HTML tag. This is the color that is used while the mouse is over the link and the button is held down by the user. Now that the style control facilities are more sophisticated, this tag attribute is likely to fall into disuse. Note also that its property name is not consistent with its counterpart, the document.alinkColor property whose value it reflects. BODY.link, BODY.text, BODY.vLink, Color names, Color value, Document.alinkColor, Document.bgColor, Document.fgColor, Document.linkColor, Document.vlinkColor, HTML object See also:

Web hosting reseller - JavaScript Programmer’s Reference Property JavaScript JScript N IE

Sunday, October 21st, 2007

JavaScript Programmer’s Reference Property JavaScript JScript N IE Opera DOM HTML Notes accessKey 1.5 + 3.0 + 6.0 + 4.0 + 1 + - aLink 1.5 + 3.0 + 6.0 + 4.0 + 1 + - background 1.5 + 3.0 + 6.0 + 4.0 + 1 + Warning bgColor 1.5 + 3.0 + 6.0 + 4.0 + 1 + - bgProperties 3.0 + 4.0 + - bottomMargin 3.0 + 4.0 + Warning leftMargin 3.0 + 4.0 + Warning link 1.5 + 3.0 + 6.0 + 4.0 + 1 + - noWrap 3.0 + 4.0 + Warning recordNumber 3.0 + 4.0 + - ReadOnly . rightMargin 3.0 + 4.0 + Warning scroll 3.0 + 4.0 + Warning tabIndex 1.5 + 3.0 + 6.0 + 4.0 + 1 + - text 1.5 + 3.0 + 6.0 + 4.0 + 1 + - topMargin 3.0 + 4.0 + Warning vLink 1.5 + 3.0 + 6.0 + 4.0 + 1 + - Method JavaScript JScript N IE Opera DOM HTML Notes create ControlRange() 5.0 + 5.0 + - create TextRange() 3.0 + 4.0 + - Event name JavaScript JScript N IE Opera DOM HTML Notes onAfterUpdate 3.0 + 4.0 + - onBeforeUnload 3.0 + 4.0 + - onBeforeUpdate 3.0 + 4.0 + - onChange 1.5 + 3.0 + 6.0 + 4.0 + - onClick 1.5 + 3.0 + 6.0 + 4.0 + 4.0 + Warning onDataAvailable 3.0 + 4.0 + - onData SetChanged 3.0 + 4.0 + - onData SetComplete 3.0 + 4.0 + - onDblClick 1.5 + 3.0 + 6.0 + 4.0 + 4.0 + Warning onDragStart 3.0 + 4.0 + - onErrorUpdate 3.0 + 4.0 + - onFilterChange 3.0 + 4.0 + - onHelp 3.0 + 4.0 + Warning Table continued on following page

Web hosting compare - B BODY object (Object/HTML) BODY object (Object/HTML)

Sunday, October 21st, 2007

B BODY object (Object/HTML) BODY object (Object/HTML) An object that represents the body of a document. Availability: DOM level 1 JavaScript 1.5 JScript 3.0 Internet Explorer 4.0 Netscape 6.0 Inherits from: Element object IE myBODY = myDocument.all.anElementID IE myBODY = myDocument.all.tags(”BODY”) [anIndex] IE myBODY = myDocument.all[aName] -myBODY = myDocument.body -myBODY = myDocument.getElementById (anElementID) -myBODY = myDocument.getElementsByName (aName)[anIndex] JavaScript syntax: -myBODY = myDocument.getElementsByTagName (”BODY”)[anIndex] HTML syntax: … anIndex A valid reference to an item in the collection (should be 0) aName The nameattribute of an element Argument list: anElementID The ID attribute of an element Object properties: accessKey, aLink,background,bgColor, bgProperties, bottomMargin, leftMargin, link,noWrap, recordNumber, rightMargin,scroll, tabIndex, text,topMargin, vLink Object methods: Event handlers: Collections: createControlRange(), createTextRange() onAfterUpdate, onBeforeUnload,onBeforeUpdate, onChange, onClick, onDataAvailable, onDataSetChanged, onDataSetComplete, onDblClick, onDragStart, onErrorUpdate, onFilterChange, onHelp, onKeyDown, onKeyPress, onKeyUp, onMouseDown, onMouseMove, onMouseOut, onMouseOver, onMouseUp, onRowEnter, onRowExit, onScroll, onSelectStart, onUnload controlRange[] Although this generally represents the tag, there are also properties that relate to the body that belong to the Documentand Windowobjects. In MSIE, there is also a HEAD object, which contains related information. The tag is a block-level tag. You can’t place a tag into the document but taken in the context of a framed environment it manifests itself as if it were a block-level tag. Background object, Document object, Document.bgColor, Document.body, Element object, Element.isTextEdit, Element.offsetParent, Frame object,HEAD object, Input.accessKey, Window object See also:

JavaScript Programmer’s Reference Inheritance chain: (Christian web host) Element object, Node

Saturday, October 20th, 2007

JavaScript Programmer’s Reference Inheritance chain: Element object, Node object BLOCKQUOTE.cite (Property) A URL pointing at the document that a quote is attributed to. Availability: DOM level 1 JavaScript 1.5 JScript 3.0 Internet Explorer 4.0 Netscape 6.0 Property/method value type: String primitive JavaScript syntax: -myBLOCKQUOTE.cite The URL of the document being quoted from is noted in this property. Blur() (Filter/visual) A visual filter for blurring objects. Availability: JScript 3.0 Internet Explorer 4.0 Refer to: Filter Blur() blur() (Method) Move the input focus away from the receiving element. Availability: DOM level 1 JavaScript 1.1 JScript 3.0 Internet Explorer 3.0 Netscape 3.0 Opera 3.0 Property/method value type: undefined -blur() JavaScript syntax: -myWindow.blur() See also: Input.blur(), Window.focus(), Window.blur()

B BLOCKQUOTE object (Object/HTML) HTML syntax: … (Mac os x web server)

Friday, October 19th, 2007

B BLOCKQUOTE object (Object/HTML) HTML syntax:

anIndex A valid reference to an item in the collection aName The nameattribute of an element Argument list: anElementID The ID attribute of an element Object properties: cite Object methods: click() Event handlers: onClick, onDblClick, onDragStart, onFilterChange, onHelp, onKeyDown, onKeyPress, onKeyUp, onMouseDown, onMouseMove, onMouseOut, onMouseOver, onMouseUp, onSelectStart This is used to set off a long quote inside a document and is intended to place an extract from a document into the displayed window with an active link to the document it quotes from. The style and appearance is that of a block quote text. The
tag is a block-level tag. That means that it forces a line break before and after unless the alignment and text flow around it are controlled very cleverly. The DOM level 1 specification refers to this as a QuoteElement object. See also: Element object Property JavaScript JScript N IE Opera DOM HTML Notes cite 1.5 + 3.0 + 6.0 + 4.0 + 1 + - Method JavaScript JScript N IE Opera DOM HTML Notes click() 1.5 + 3.0 + 6.0 + 4.0 + 1 + - Event name JavaScript JScript N IE Opera DOM HTML Notes onClick 1.5+ 3.0 + 6.0 + 4.0 + 4.0 + Warning onDblClick 1.5 + 3.0 + 6.0 + 4.0 + 4.0 + Warning onDragStart 3.0 + 4.0 + - onFilterChange 3.0 + 4.0 + - onHelp 3.0 + 4.0 + Warning onKeyDown 1.5 + 3.0 + 6.0 + 4.0 + 4.0 + Warning onKeyPress 1.5+ 3.0 + 6.0 + 4.0 + 4.0 + Warning onKeyUp 1.5 + 3.0 + 6.0 + 4.0 + 4.0 + Warning onMouseDown 1.5 + 3.0 + 6.0 + 4.0 + 4.0 + Warning onMouseMove 1.5 + 3.0 + 6.0 + 4.0 + 4.0 + Warning onMouseOut 1.5+ 3.0 + 6.0 + 4.0 + 4.0 + Warning onMouseOver 1.5+ 3.0 + 6.0 + 4.0 + 4.0 + Warning onMouseUp 1.5+ 3.0 + 6.0 + 4.0 + 4.0 + Warning onSelectStart 3.0 + 4.0 + -

JavaScript Programmer’s Reference Block { } (Statement) A (Web site translator)

Thursday, October 18th, 2007

JavaScript Programmer’s Reference Block { } (Statement) A list of executable statements enclosed in curly braces. Availability: ECMAScript edition 2 See also: Compound statement, if( … ) …, if( … ) … else …, Statement, Code block delimiter {} Cross-references: ECMA 262 edition 2 section 12.1 ECMA 262 edition 3 section 12.1 Wrox Instant JavaScript page 17 Block-level tag (Definition) A block-level tag cannot exist inside a line. It must be placed on a line by itself. By default, block-level items will be placed on a line by themselves because they force a line break before and after they are displayed. However you can modify the alignment and text flow around a block-level object to make it appear to be inline. BLOCKQUOTE object (Object/HTML) An object that represents a

text area. Availability: DOM level 1 JavaScript 1.5 JScript 3.0 Internet Explorer 4.0 Netscape 6.0 Inherits from: Element object IE myBLOCKQUOTE = myDocument.all.anElementID IE myBLOCKQUOTE = myDocument.all.tags (”BLOCKQUOTE”)[anIndex] IE myBLOCKQUOTE = myDocument.all[aName] -myBLOCKQUOTE = myDocument.getElementById (anElementID) -myBLOCKQUOTE = myDocument.getElementsByName (aName)[anIndex] JavaScript syntax: -myBLOCKQUOTE = myDocument.getElementsByTagName(”BLOCKQUOTE”)[ anIndex]

B blob.blobLink() (Method) The data is pulled (Web hosting servers)

Thursday, October 18th, 2007

B blob.blobLink() (Method) The data is pulled out of the database according to the specified parameters. The BLOB can then be displayed as if it were an image in an tag. The format argument should contain an image specifier such as “GIF” or “JPEG” that can map conveniently to a file extension or MIME type. The remaining parameters to this method mainly correspond to the HTML tag attributes that can be used with an tag and are optional. This method generates the necessary tag to place into a document that refers to the BLOB data as if it were an image file on the server. When the document is parsed, the browser will request the image in the normal way; the contents of the BLOB are then returned in response to that request. The browser is not aware that the image data was retrieved from the database and by caching the image in memory when the link to it is placed in the document most of the latency associated with requesting objects out of the database is eliminated, albeit at the cost of increased memory usage in the server backend. See also: Cursor.blobImage(),blob object,MIME types blob.blobLink() (Method) This method creates an element that links to the BLOB data. Availability: JavaScript 1.1 Netscape Enterprise Server 2.0 Property/method value type: Anchor object JavaScript syntax: NES myBlob.blobLink(aMimeType, aString) aString The text inside the link Argument list: aMimeType The MIME type of the document being displayed The data is pulled out of the database according to the specified parameters. The BLOB can then be displayed as if it were a document in an tag. This method generates the necessary URL to place into a document that links to it. If the user clicks on the link, the contents of the BLOB are then returned in response to that request. See also: Cursor.blobLink(), blobobject, MIME types