원천 개체를 포함하는 TextRange를 생성하는데 사용될 수 있는 문서 계통도의 용기 개체를 반환한다.
![]() | Script | [oVal=]object.parentTextEdit |
HTML | 없음 |
이 속성은 읽기전용이며 디폴트값은 없다.
모체가 존재하면 이 속성값은 그 개체이고, 존재하지 않으면 이 속성값은 null이다.
예를들어 body 엘레멘트의 parentTextEdit 속성값은 null이다.
개체 | script | HTML | 규격 | IE |
---|---|---|---|---|
a | [oVal=]a.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
acronym | [oVal=]acronym.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
address | [oVal=]address.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
applet | [oVal=]applet.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
area | [oVal=]area.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
b | [oVal=]b.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
base | [oVal=]base.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
baseFont | [oVal=]baseFont.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
bdo | [oVal=]bdo.parentTextEdit | 없음 | 없음 | IE5(win16,win32,unix,mac) |
bgSound | [oVal=]bgSound.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
big | [oVal=]big.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
blockQuote | [oVal=]blockQuote.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
body | [oVal=]body.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
br | [oVal=]br.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
button | [oVal=]button.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
caption | [oVal=]caption.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
center | [oVal=]center.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
cite | [oVal=]cite.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
code | [oVal=]code.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
col | [oVal=]col.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
colGroup | [oVal=]colGroup.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
comment | [oVal=]comment.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
custom | [oVal=]custom.parentTextEdit | 없음 | 없음 | IE5(win32,unix |
dd | [oVal=]dd.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
del | [oVal=]del.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
dfn | [oVal=]dfn.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
dir | [oVal=]dir.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
div | [oVal=]div.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
dl | [oVal=]dl.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
dt | [oVal=]dt.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
em | [oVal=]em.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
embed | [oVal=]embed.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
fieldSet | [oVal=]fieldSet.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
font | [oVal=]font.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
form | [oVal=]form.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
frame | [oVal=]frame.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
frameSet | [oVal=]frameSet.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
head | [oVal=]head.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
hn | [oVal=]hn.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
hr | [oVal=]hr.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
html | [oVal=]html.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
i | [oVal=]i.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
iFrame | [oVal=]iFrame.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
img | [oVal=]img.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
button | [oVal=]button.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
checkbox | [oVal=]checkbox.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
FileUpload | [oVal=]FileUpload.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
hidden | [oVal=]hidden.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
image | [oVal=]image.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
password | [oVal=]password.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
radio | [oVal=]radio.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
reset | [oVal=]reset.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
submit | [oVal=]submit.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
text | [oVal=]text.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
ins | [oVal=]ins.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
kbd | [oVal=]kbd.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
label | [oVal=]label.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
legend | [oVal=]legend.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
li | [oVal=]li.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
link | [oVal=]link.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
listing | [oVal=]listing.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
map | [oVal=]map.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
marquee | [oVal=]marquee.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
menu | [oVal=]menu.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
meta | [oVal=]meta.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
nextID | [oVal=]nextID.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
noBR | [oVal=]noBR.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
Object | [oVal=]Object.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
ol | [oVal=]ol.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
Option | [oVal=]Option.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
p | [oVal=]p.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
plainText | [oVal=]plainText.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
pre | [oVal=]pre.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
q | [oVal=]q.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
s | [oVal=]s.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
samp | [oVal=]samp.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
script | [oVal=]script.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
select | [oVal=]select.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
small | [oVal=]small.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
span | [oVal=]span.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
strike | [oVal=]strike.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
strong | [oVal=]strong.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
sub | [oVal=]sub.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
sup | [oVal=]sup.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
table | [oVal=]table.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
tBody | [oVal=]tBody.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
td | [oVal=]td.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
textArea | [oVal=]textArea.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
tFoot | [oVal=]tFoot.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
th | [oVal=]th.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
tHead | [oVal=]tHead.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
title | [oVal=]title.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
tr | [oVal=]tr.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
tt | [oVal=]tt.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
u | [oVal=]u.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
ul | [oVal=]ul.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
var | [oVal=]var.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
xmp | [oVal=]xmp.parentTextEdit | 없음 | 없음 | IE4.0(win16,win32,ce,unix,mac) |
![]() | parentTextEdit 속성⇒ | ![]() | ![]() ![]() ![]() |
모체 개체를 반환받고, 새로운 TextRange를 생성하여, 원본 개체를 이동하고, 내용 텍스트를 선택한다t.
<SCRIPT> function selectWord(){ var sourceElem=window.event.srcElement ; str='window.event.srcElement.nodeName='+window.event.srcElement.nodeName+'<BR>'; if (!sourceElem.isTextEdit) sourceElem=sourceElem.parentTextEdit; if (sourceElem!=null){ var newTextRange=sourceElem.createTextRange(); newTextRange.moveToElementText(window.event.srcElement); newTextRange.collapse(); newTextRange.expand("word"); str+='newTextRange.text='+newTextRange.text; newTextRange.select(); } showA.innerHTML=str; } </SCRIPT> <BUTTON onclick="selectWord()">클릭해 보라</BUTTON> <DIV id=showA>결과 표시창</DIV>
![]() | parentTextEdit 속성 | ⇒ | ![]() ![]() |
최종 수정: 06/28/2025 04:24:25 | ![]() All right reserved | 비정상적인 방식으로 프레임없이 페이지에 접속하면 자주 오류가 발생됩니다. 오류가 나면 정상적 접속으로 시도해 보세요. | http://koxo.com/lang/js/property/parentTextEdit.html |