<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head> <title>Title</title> <meta http-equiv="Content-Type" content="text/html";charst="utf-8" /> <script type="text/javascript"> function choices() { var prefchoice = 1; var statechoice = 'OR'; var genderchoice = 'F'; if (prefchoice === 1) { alert("You've picked option 1.Here is what will happen..."); if (statechoice === 'OR') { alert("You've picked 1 and you're from Oregon."); if (prefchoice === 'M') { alert("You've picked i and you're from Orgon and you're a man."); } } } } </script> </head><body onload="choices"></body></html>
添加回答
举报
0/150
提交
取消