如何用response.write输出同一页面用javascript定义的变量!???
同上麻烦大家给想想办法!!!!!!!!!!!!!!!!!
兄弟先谢了!
<!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>无标题文档</title> </head>
<body> <script language="javascript"> function se() { var str=document.form1.ddd.options[document.form1.ddd.selectedIndex].text; } </script> <form name="form1" method="post" action="" > <select name="ddd" size="1" id="ddd" onChange="se()"> <option>aaaa</option> <option>ffff</option> <option>dddd</option> <option>gggg</option>
</select> <input type="submit" name="Submit" value="提交"> </form> </body> </html> 大家看看, 如何用response.write 输出str变量!!!