=波波日志 > HTML/WML/CSS兼容/XML > Selection Prototype=

[转]Selection Prototype

Defines the properties and methods inherited by objects in the Selection prototype chain.

Syntax

HTML N/A
Scripting Selection.prototype

Members Table

The following table lists the members exposed by the Selection Constructor object.

Attributes/Properties

Property Description
type Retrieves the type of selection.
typeDetail Retrieves the name of the selection type.

Methods

Method Description
clear Clears the contents of the selection.
createRange Creates a TextRange object from the current text selection, or a controlRange collection from a control selection.
createRangeCollection Creates a TextRange object collection from the current selection.
empty Cancels the current selection, sets the selection type to none, and sets the item property to null.

Remarks

For more information on this and other DOM Prototypes see Document Object Model Prototypes, Part 1: Introduction.

This prototype does not derive from any objects.

Applies To

selection
类别:HTML/WML/CSS兼容/XML 作者:转载 日期:2010-04-30 【评论:0】 
上一篇:createTextRange Method 
下一篇:selection Object
 
暂时没有评论!
发表留言
  • *昵称:
  • 头像:
  • 电子邮件: [留下您的邮件,方便管理员回复您。]
  • 个人网站: *验证码:
声明:本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载或引用的作品侵犯了您的权利,请通知我们,我们会及时删除!
Powered by showbo,©2012WEB编程网桂ICP备05005887号 京公网安备1101055090