www.fgks.org   »   [go: up one dir, main page]

Click to Rate and Give Feedback
Properties
 type Property
type Property

Retrieves the type of selection.

Syntax

[ sType = ] selection.type

Possible Values

sTypeString that receives one of the following values.
noneNo selection/insertion point.
textSpecifies a text selection.
controlSpecifies a control selection, which enables dimension controls allowing the selected object to be resized.

The property is read-only. The property has no default value.

Remarks

The selection object is off the document object.

Example

This example uses the type property to create an alert that indicates the type of object selected by the user. If the user clicks the mouse pointer on the text "Some text", the alert reads "Text". If the user clicks the mouse pointer on the space to the right of the text, the alert reads "None".

<BODY >
Some text.

Standards Information

This property is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 World Wide Web link.

Applies To

selection
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker
DCSIMG