<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>window.open</title><script type="text/javascript"> function Wopen(){ var myad=prompt("学生成绩"); if(myad==90){ document.write("优秀"); } else if(myad==80){ document.write("良好"); } else{ document.write("其他"); }</script></head><body> <input name="button" type="button" onClick="Wopen()" value="点击我,打开新窗口!" / ></body></html>
添加回答
举报
0/150
提交
取消