lhgdialog/_content/02.html

(完整代码) 945B

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<script type="text/javascript">
var dg = frameElement.dg;

window.onload = function()
{
	document.getElementById('a').innerHTML = dg.win.document.getElementById('txt1').value;
}
function ok()
{
    dg.win.document.getElementById('txt1').value = document.getElementById('b').value;
	dg.cancel();
}
	</script>
</head>

<body style="background-color:#fff;">
	<p>调用页面输入框的值显示在这里:<span id="a" style="color:#f00"></span></p>
	<input id="b" type="text" value="test"/>&nbsp;<input type="button" value="确定" onclick="ok();"/><br/>
	点确定按钮后会把输入框中的值传回到调用页面的输入框里并关闭打开的窗口
</body>
</html>

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。