=波波日志 > HTML/WML/CSS兼容/XML > createControlRange Method=

[转]createControlRange Method

Creates a controlRange collection of nontext elements.

Syntax

oControlRange = object.createControlRange()

Return Value

Returns a controlRange collection if sucessful or a null value otherwise.

Remarks

Creates a selection range object for control-based selection rather than text-based selection.

If a controlRange already exists, createControlRange overwrites the existing element; otherwise, it returns a pointer to the element created.

Example

This example creates a controlRange by using the createControlRange method.

oControlRange = document.body.createControlRange();

Standards Information

There is no public standard that applies to this method.

Applies To

BODY, Element Constructor

See Also

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