spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / javascript / column12


JavaScript Selections

Developer News
Mandrake Linux Founder Back, Virtually
Amazon: We're a Technology Company
Sun Expands MySQL With Closed Source

With Navigator 4.0x and Internet Explorer 4.0x, it is possible to retrieve the contents of the user's selection in a page. In Internet Explorer 4.0x, you can select any element, including text and images. However, Navigator 4.0x only supports text selections.

In this column we'll discuss the differences between selections in Navigator 4.0x and Internet Explorer 4.0x. Navigator 4.0x, as opposed to Internet Explorer 4.0x, relies less on the client's operating system, so some of the system's typical behavior is not implemented.

Navigator 4.0x features a single method that returns the text of the current selection in the form of a string. Internet Explorer 4.0x ties selections with text ranges. In this column we'll explain:

  1. How Navigator 4.0x and Internet Explorer 4.0x handle selections.
  2. How to use selection-related event handlers.
  3. How to retrieve a selection in Navigator 4.0x.
  4. How to use the selection object in Internet Explorer 4.0x.
  5. How to create a TextRange object in Internet Explorer 4.0x.
  6. How to utilize a TextRange object's properties and methods.
  7. How to retrieve the current selection with Navigator 4.0x and Internet Explorer 4.0x.

More Resources from Doc JavaScript
Columns Popular Columns Tips Tools
Latest Columns
41-50 | 31-40 | 21-30
11-20 | 1-10
Working with Windows
JavaScript and Frames
Bookmarklets
Random Tips
Personalized Tips
RSS Channels
Menu Builder
Rollover Builder
Rotation Builder
Reference Tip Categories (want one?)
Links
For Your Site
Did you learn something? Do you like this site? Please link to us!

http://www.internet.com

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

webref The latest from WebReference.com Browse >
Working with the DOM Stylesheets Collection · Administering RBAC in PHP 5 CMS Framework · xref: Automatic Cross Referencing Script
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Combine BottomCount() with Other MDX Functions to Add Sophistication · Creating a Daemon with Python · The Coming Voice-over-WiMAX Revolution


Created: January 29, 1998
Revised: January 29, 1998

URL: http://www.webreference.com/js/column12/