선택된 텍스트 값 읽어오기
작성일 06-09-20 17:55
페이지 정보
작성자서방님 조회 595회 댓글 0건본문
function getSel(obj){
if(obj.getSelection) {
txt=obj.getSelection();
} else if(obj.selection) {
txt=obj.selection.createRange().text;
} else {
return
}
return txt.replace(new RegExp('([\f\n\r\t\v ])+','g')," ");
}
댓글목록
등록된 댓글이 없습니다.
