페이지 시작시 스크립트 함수를 실행할려면(body 에서 onload 말고 다른 방식입니다.)
-실행할려는 함수가 test() 인경우
<script language="javascript">
function window::onload(){test()}
function test(){}
</script>
복수개도 실행가능합니다.
<script language="javascript">
function window::onload(){test1() test2();}
function test1(){}
function test2(){}
</script>
'web > JSP' 카테고리의 다른 글
JSP Forward 와 Redirect 의 차이 (8) | 2010.12.03 |
---|---|
jsp 동적 테이블생성 select 추가 (0) | 2010.11.26 |
jsp 표현언어 안되는건 안될수밖에.. (0) | 2010.11.21 |
jsp String에 대한 고찰.. (0) | 2010.11.19 |
jsp tomcat startup,shutdown, '-Djava.endorsed.dirs=' (0) | 2010.11.18 |