Archive for September, 2007

567Chapter 18The Document and Body Objectsdocument.onmouseup (Web hosting resellers) = showSelection;

Wednesday, September 26th, 2007

567Chapter 18The Document and Body Objectsdocument.onmouseup = showSelection;

Getting Selected Text


Select some text and see how JavaScript can capture the selection:

ARTICLE I

Congress shall make no law respecting an establishment of religion, orprohibiting the free exercise thereof; or abridging the freedom ofspeech, or of the press; or the right of the people peaceably toassemble, and to petition the government for a redress of grievances.

Related Items:document.selectionproperty. handleEvent(event) Returns:Nothing. Compatibility:WinIE-, MacIE-, NN4, Moz-, Safari- When you explicitly capture NN4 events in the window, document, or layer object (by invok- ing the captureEvents()method for that object), you can control where the events go aftertheir initial capture. To let an event continue to its original target (for example, a button thatis clicked by a user), you use the routeEvent()method. But if you want to redirect an event(or class of events) to a particular event handler elsewhere in the document, use thehandleEvent()method. See the discussion of the handleEvent()method for the windowobject in Chapter 16. Thebehavior of the handleEvent()method for all objects is the same. Related Items:document.captureEvents(), document.releaseEvents(), document.routeEvent()methods; eventobject (Chapter 25). open([ mimeType ] [, replace ]) Returns:Nothing. Compatibility:WinIE3+, MacIE3+, NN2+, Moz1+, Safari1+ Opening a document is different from opening a window. In the case of a window, you re cre- ating a new object, both on the screen and in the browser s memory. Opening a document, onthe other hand, tells the browser to get ready to accept some data for display in the windownamed or implied in the reference to the document.open()method. (For example, parent.frames[1].document.open()may refer to a different frame in a frameset, whereasdocument.open()implies the current window or frame.) Therefore, the method name maymislead newcomers because the document.open()method has nothing to do with loadingdocuments from the Web server or hard disk. Rather, this method is a prelude to sendingdata to a window via the document.write()or document.writeln()methods. In a sense, document.open()
Note: In case you are looking for affordable and reliable webhost to host and run your j2ee application check Vision J2ee Web Hosting services.

566Part IIIDocument Objects ReferencegetSelection() Returns:String. Compatibility:WinIE-, MacIE-, NN4+, (X web hosting)

Tuesday, September 25th, 2007

Web server on xp - 565Chapter 18The Document and Body Objectsdocument.getElementById( myP ) document.getElementById( myEM ) document.getElementById( myTitle )

Tuesday, September 25th, 2007

561Chapter 18The Document and Body ObjectsThe IE-specific elementFromPoint()method (Web host)

Wednesday, September 19th, 2007

560Part IIIDocument Objects ReferenceThe word Hello appears at (Web hosting domain names)

Tuesday, September 18th, 2007

559Chapter 18The Document and Body ObjectsDuis aute irure (Web hosting providers)

Tuesday, September 18th, 2007

558Part IIIDocument Objects Referencethe document.styleSheetsarray of styleSheetobjects. An (Free web servers)

Monday, September 17th, 2007

Web server logs - 557Chapter 18The Document and Body ObjectscreateEventObject([eventObject]) Returns:eventobject. Compatibility:WinIE5.5+,

Monday, September 17th, 2007

556Part IIIDocument Objects ReferencenewElem.style.fontSize = 20pt ; (Ecommerce web host) ordocument.getElementById( newestP ).style.fontSize =

Sunday, September 16th, 2007

Ecommerce web host - 555Chapter 18The Document and Body ObjectscreateDocumentFragment() Returns:Document fragment

Sunday, September 16th, 2007