当前位置: 代码迷 >> JavaScript >> javascript 技艺积累
  详细解决方案

javascript 技艺积累

热度:280   发布时间:2012-09-01 09:33:02.0
javascript 技巧积累

直接添加代码

?

1. 设置浏览器的窗口大小 ,其中 500像素 为宽,200为高

<script >window.resizeTo(500,200); </script>

?

2. 获得本网页的标题

<script >document.write ( document.title ); </script>

?

3.获取本网页包含的表单数目

<script >document.write ( document.forms.length ); </script>

?

4.获取某个表单中某个控件的值

?

<script >document.write ( window.document.FormName.ItemName.value ); </script>

  相关解决方案