契科夫坏孩子解读:求一句asp代码的意思

来源:百度文库 编辑:中科新闻网 时间:2024/04/29 00:18:05
<select name="LarCode" onchange="window.location.href='admin_prod.asp?action=添加新名单&Larcode='+this.options[this.selectedIndex].value; this.selectedIndex=0">

朋友们能讲一下上面这句代码的意思么?
能详细点就详细点,谢谢了!

<select></select>这是一个下拉列表菜单
name="LarCode"控件的名字是LarCode
onchange="window.location.href='admin_prod.asp?action=添加新名单&Larcode='+this.options[this.selectedIndex].value; this.selectedIndex=0是下拉列表菜单中选中的项更改触发的事件。""中是事件的代码。
window.location.href是javascript中用来载入新联接的代码;
“admin_prod.asp?action=添加新名单&Larcode='+this.options[this.selectedIndex].value”是载入页面的相对URL路径。

其中.options[this.selectedIndex].value是选中项目的值。