javascript function

how to use function?

Function
<html>
<head>
    <script type="text/javascript" >
        function display(){
           document.location.href="http://www.baidu.com"

        }

   </script>

</head>

<body>
<input type="button" value="test" onmouseover="display()">

</body>

</html>
posted @ 2012-09-05 08:23  Epirus  阅读(107)  评论(0编辑  收藏  举报