发布网友 发布时间:2022-04-23 18:28
共1个回答
热心网友 时间:2022-05-16 23:52
<div id="aaaa" style="display: none">abcdefg</div>
<input type="button" value="new Window" onclick="javascript: newWnd();" />
<script type="text/javascript">
function newWnd() {
var hWnd = window.open();
hWnd.document.write("<input type=\"button\" value=\"Click me\" onclick=\"javascript: window.opener.document.getElementById('aaaa').style.display = 'block';\" />");
hWnd.document.close();
}
</script>