jQuery | javascript | CSS

19.jQuery - Browser ( 19.Browser )

Godffs 2009. 11. 9. 09:19
반응형
jQuery를 이용하여 브라우저의 버전을 확인해보는 예제입니다.

19.Browser.htm

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

    <title>브라우저 버전</title>   

    <script src="jQuery/jquery-1.3.2-vsdoc2.js" type="text/javascript"></script>

    <script type="text/javascript">

        $(document).ready(function() {

            alert('현재 브라우저 버전은 :  '

                + jQuery.browser.version + '입니다.');

        });

    </script>

</head>

 

<body>

 

</body>

</html>


결과화면

[그림19-1]



반응형