日期:2014-05-16 浏览次数:20421 次
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus?">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title>Document</title>
</head>
<body>
<table id=table>
<tr><td>1111</td><td><input type="button" value="show" onclick="pop(this)"/></td></tr>
<tr><td>2222</td><td><input type="button" value="show" onclick="pop(this)"/></td></tr>
<tr><td>3333</td><td><input type="button" value="show" onclick="pop(this)"/></td></tr
<tr><td>4444</td><td><input type="button" value="show" onclick="pop(this)"/></td></tr
<tr><td>5555</td><td><input type="button" value="show" onclick="pop(this)"/></td></tr
<tr><td>6666</td><td><input type="button" value="show" onclick="pop(this)"/></td></tr
</table>
</body>
<script>
function pop(btn){
var obj = {parent:window,
tr:btn.parentNode.parentNode,//tr
table:document.getElementById("table")
}
window.showModalDialog('2.html',obj);
}
</script>
</html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus?">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title>Document</title>
</head>
<body>
<label id='lbl'></label>
<input type=button value="next" onclick="next()"/>
</body>
<script>
var lbl = document.getElementById('lbl'),
wParent = window.dialogArguments.parent,
table = window.dialogArguments.table
tr = window.dialogArguments.