function chuan(obj)
{
if(obj.tagName!="select")
{return eval("obj.value");}
else
{return eval("obj.["+obj.selectedIndex+"].value")}
}
如果是没有value的对象就回出错!
{
if(obj.tagName!="select")
{return eval("obj.value");}
else
{return eval("obj.["+obj.selectedIndex+"].value")}
}
如果是没有value的对象就回出错!
<!--
function chuan(obj)
{
document.all["div1"].innerText=obj
}
//-->
</script>
<input type=button value=ok onclick=chuan('bzscs')><div id="div1"></div>