지정된 속성으로부터 표현식을 제거한다.

Script[bVal=]object.removeExpression(sPropertyName)
인수/파라메터
sPropertyName

필수적인 요소이며, 표현식이 제거될 속성의 이름을 지정하는 문자열이다.

반환값

반환값 bVal은 성공적으로 표현식이 제거되었는가를 나타내는 부울값이다.

true 표현식이 성공적으로 제거되었다.
false 표현식이 제거되지 않았다.
특기

지정된 속성으로부터 표현식이 제거된 후 속성값은 제거 전 최종적으로 표현식에 의하여 계산된 값이다. setExpression 메서드에 의하여 설정된 표현식을 제거하기 위하여, removeExpression 메서드를 사용한다.

다음 문법은 CSS 속성들(Cascading Style Sheets)과 속성들에서 표현식을 제거하는 방식을 보여준다.

적용
개체scriptIE
aa.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
acronymacronym.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
addressaddress.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
appletapplet.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
areaarea.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
bb.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
bdobdo.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
bigbig.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
blockQuoteblockQuote.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
bodybody.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
brbr.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
buttonbutton.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
captioncaption.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
centercenter.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
citecite.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
codecode.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
colcol.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
colGroupcolGroup.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
customcustom.removeExpression(sPropertyName)IE5(win32,unix),IE5.5(ce)
dddd.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
deldel.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
dfndfn.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
dirdir.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
divdiv.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
dldl.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
dtdt.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
emem.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
embedembed.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
fieldSetfieldSet.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
fontfont.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
formform.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
hnhn.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
hrhr.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
ii.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
iFrameiFrame.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
imgimg.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
buttonbutton.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
checkboxcheckbox.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
FileUploadFileUpload.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
hiddenhidden.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
imageimage.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
passwordpassword.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
radioradio.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
resetreset.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
submitsubmit.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
texttext.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
insins.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
kbdkbd.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
labellabel.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
legendlegend.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
lili.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
listinglisting.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
marqueemarquee.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
menumenu.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
noBRnoBR.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
ObjectObject.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
olol.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
OptionOption.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
pp.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
prepre.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
qq.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
rtrt.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
rubyruby.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
runtimestyleruntimestyle.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
ss.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
sampsamp.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
selectselect.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
smallsmall.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
spanspan.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
strikestrike.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
strongstrong.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
stylestyle.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
subsub.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
supsup.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
tabletable.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
tBodytBody.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
tdtd.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
textAreatextArea.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
tFoottFoot.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
thth.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
tHeadtHead.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
trtr.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
tttt.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
uu.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
ulul.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
varvar.removeExpression(sPropertyName)IE5(win16,win32,unix,mac),IE5.5(ce)
참조
getExpression, remove, setExpression, recalc

method
removeExpression 메서드
removeExpression</b> 메서드이전페이지로페이지 맨위로페이지 맨아래로
box1Obj + box2Obj : box2Obj.style.width


결과 표시창

setExpression 메서드와 removeExpression 메서드로 div박스의 width 속성 표현식을 설정하고, 제거하는 예제이다.

box1Obj <INPUT type=text id=box1Obj value=50 size=3 onchange="showLength.innerText=box3Obj.style.width">+
box2Obj <INPUT type=text id=box2Obj value=50 size=3 onchange="showLength.innerText=box3Obj.style.width"> :
box2Obj.style.width <SPAN id=showLength></SPAN><BR>
<DIV id=box3Obj style="background-color:blue"></DIV><BR>
<SCRIPT>
var sExpress,bVal;
document.onlad=setexp();
function setexp(){
  box3Obj.style.setExpression('width','eval(box1Obj.value)+eval(box2Obj.value)','jscript');
  showLength.innerText=box3Obj.style.width;
}
function getexp(){
  sExpress=box3Obj.style.getExpression('width');
  str='청색 박스의 width의 표현식은 ' + sExpress + '이고,<BR>';
  str+='이 width 속성은 값 ' + box3Obj.style.width+'을 갖는다.';
  showA.innerHTML=str;
  showLength.innerText=box3Obj.style.width;
}
function remexp(){
  bVal=box3Obj.style.removeExpression('width');
  showA.innerHTML='표현식이 제거되었나? '+bVal;
}
</SCRIPT>
<INPUT type=button id=Button1 value="표현식 내용" onclick="getexp()">
<INPUT type=button id=Button2 value="표션식 제거" onclick="remexp()">
<INPUT type=button id=Button3 value="표현식 생성" onclick="setexp()"><BR>
<DIV id=showA>결과 표시창</DIV>
method
removeExpression 메서드
견본
이전페이지로페이지 맨위로
최종 수정:
06/28/2025 02:00:26
KoXo Homepage
All right reserved
비정상적인 방식으로 프레임없이 페이지에 접속하면 자주 오류가 발생됩니다.
오류가 나면 정상적 접속으로 시도해 보세요.
http://koxo.com/lang/js/method/removeExpression.html