CD-383Appendix F . Examples from Parts III and (Web hosting faq)

CD-383Appendix F . Examples from Parts III and IV if (document.selection) { document.forms[0].selectedText.value = document.selection.createRange().text event.cancelBubble = true } } } if (isNav4) { document.captureEvents(Event.MOUSEUP) } document.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, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble, and to petition the government for a redress of grievances.

open([ mimeType ] [, replace]) NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5 Compatibility Example You can see an example of where the document.open() method fits in the scheme of dynamically creating content for another frame in the discussion of the document.write() method, later in this chapter. document.open()
If you are looking for cheap and quality webhost to host and run your website check Jboss Web Hosting services.

Leave a Reply