<script type="text/javascript">
today = new Date();
document.write( "<p><center><b>접속 날짜와 시간 : " );
// 금일 년, 월, 일, 요일, 시간을 출력
document.write( today.toLocaleString() + "</b></center>" );
</script>
결과값
today = new Date();
document.write( "<p><center><b>접속 날짜와 시간 : " );
// 금일 년, 월, 일, 요일, 시간을 출력
document.write( today.toLocaleString() + "</b></center>" );
</script>
결과값
'º Learning 。 > ♂ Javascript ♀' 카테고리의 다른 글
Array 예제 (0) | 2009.05.27 |
---|---|
Date의 getTime() 메소드 (0) | 2009.05.26 |
객체의 속성으로 객체 정의하기 (0) | 2009.05.26 |
[펌] javascript 객체 메소드 (navigator, document, date, history, window, select, option, image, array, location, link) (0) | 2009.05.26 |
[펌] javascript 필수... (0) | 2009.05.26 |