📄 test.html
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>在模式窗口中打开的页面</title>
</head>
<script language="javascript">
<!--
//将选中的值先保存到隐含对象上
function ok(tempValue){
document.all.selectedValue.value = tempValue;
}
//关闭页面时将隐含对象中的值传回
function willReturnValue(){
window.returnValue = document.all.selectedValue.value;
window.close();
}
-->
</script>
<body onUnload="willReturnValue()" bgcolor="#D4D0C8">
<center>
请单选您的爱好:
<br>
<br>
<input type="radio" name="lover" value="体育运动" onClick="ok(this.value)">体育运动
<br>
<input type="radio" name="lover" value="休闲娱乐" onClick="ok(this.value)">休闲娱乐
<br>
<input type="radio" name="lover" value="看书读报" onClick="ok(this.value)">看书读报
<br>
<input type="radio" name="lover" value="琴棋书画" onClick="ok(this.value)">琴棋书画
<input type="hidden" id="selectedValue" name="selectedValue">
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -