html获取javascript中的值

<script language="javascript" type="text/javascript">
        var ScreenWidth=window.screen.width;
        alert(ScreenWidth);
        function   getValue(){  
  document.write(ScreenWidth);  
  }  
    </script>

html:

<script type="text/javascript">

getValue()

</script>

posted @ 2009-01-06 22:31  wj-conquer  阅读(785)  评论(0编辑  收藏  举报