JAVASCRIPT

JAVASCRIPT alert창띄우기

JDK's blog 2015. 11. 18. 22:32
1
2
3
4
5
6
7
8
<script type="text/javascript">
    function testAlert(){
        alert("JDK's Blog");
    }
</script>
<body onload = "testAlert()">
 
</body>
cs

 

body에서 onload(시작시에 호출)하는 곳에 testAlert를 호출해서 

JDK's Blog라는 내용을 출력해줍니다.