javascript/javascript

javascript 실행순서

다크곰 2013. 8. 7. 01:00

<!doctype html>

<html>

<head>

<title>script</title>

<script type="text/javascript">

    alert(1);

</script>

</head>

<body onLoad="alert(2)">

<script type="text/javascript">

    alert(3);

</script>

</body>

<script type="text/javascript">

    alert(4);

</script>

</html>


내가 미쳤었나보다 ㅠㅠ 

이걸 까먹다니 반성합니다.


정답은 1,3,4,2