日期:2014-05-16  浏览次数:20390 次

哪里错了呀 就是运行不了.
<%@LANGUAGE= "JAVASCRIPT "   CODEPAGE= "936 "%>
<!DOCTYPE   HTML   PUBLIC   "-//W3C//DTD   HTML   4.01   Transitional//EN "   "http://www.w3.org/TR/html4/loose.dtd ">
<html>
<head>
<meta   http-equiv= "Content-Type "   content= "text/html;   charset=gb2312 ">
<title> "window.status和window.defaultstatus " </title> ;
<script   language= "javascript ">
window.defaultStatus= "000000000 ";
function   change()
{

window.defaultStatus=window.document.form1.aa.options[window.document.form1.aa.selectedIndex].text
}
</script>
</head>

<body>
<form   name= "form1 "   method= "post ">
    <p> 从下拉列表中选中相应的选项,状态栏会有相应的变化 </p>
    <p>
        <select   name= "aa "   size= "1 ">

            <option   value= "111111111 "> 111111111 </option>
            <option   value= "222222222 "> 222222222 </option>
            <option   value= "333333333 "> 333333333 </option>
        </select>
        <input   type= "submit "   name= "change "   value= "change "   onClick= "change() ">
    </p>
</form>
</body>
</html>

------解决方案--------------------
window.defaultStatus= "000000000 ";
这个真的能设置呢
为什么哪样子不行呢
------解决方案--------------------
可以参考http://blog.csdn.net/rob123/archive/2007/07/02/1675144.aspx
------解决方案--------------------
应该用window.status就可以了。把change()函数名改一下
------解决方案--------------------
<input type= "submit " name= "change " value= "change " onClick= "change() ">


应是 type= "button " SUBMIT的话就重新刷新了,永远是0000000