<script type="text/javascript"> function showSelection(objectName){ var list=""; for(var i=0;i<objectName.length;i++){ if(objectName.option[i].selected){ list+=objectName.options[i].text+"<p>"; } } selWindow=window.open("","Selections","height=200,width=400"); selWindow.document.write("<h2>您选择的城市是:</h2>"); selWindow.document.write(list); } </script>
添加回答
举报
0/150
提交
取消