본문 바로가기

개발/jsp

innerHTML 사용예

<script type='text/javascript'>

function test(){

document.getElementById('t').innerHTML = '다음';

}

</script>

<span id='t'>네이버</span><br/>
<input type='button' value='클릭해봐^^' onclick='test()' />

'개발 > jsp' 카테고리의 다른 글

JQUERY CHECK BOX 관련 기능 정리  (0) 2020.02.06
정규식 if (/[\d]{4}[.][\d]{2}[.][\d]{2}/  (0) 2020.02.06
location.href, location.replace  (0) 2020.02.06
메일선택  (0) 2020.02.06
jQuery Selector  (0) 2020.02.06