비밀번호필드 » Api

setsel

Description

필드의 입력값의 길이를 설정하는 API이다.

Parameters

Parameters Type Description
nStartChar short 시작 길이
nEndChar short 마지막 길이

Return Value

Type Description
void 없음

Remark

nStartChar = -1 , nEndChar = -1  : 텍스트의 맨끝으로(블럭지정 안됨)
nStartChar = -1 , nEndChar = 0   : 전체 블럭지정, 커서는 텍스트의 맨앞으로
nStartChar = 0  , nEndChar = -1  : 전체 블럭지정, 커서는 텍스트의 맨끝으로

Example

function btn_setsel_on_mouseup() { password_field.setsel(0,3); }

See Also

getselend
getselstart

Viewer Ver.

9.1.1.1

Update Date

20120404