我需要在模态窗口中获取下面的内容。今天我一直在尝试这一点。 在模态窗口打开后,无法访问背景正文内容,在重载页面模式弹出窗口应该关闭,保持文本区域的内容不变。打开html模式对话框
<a href="" id="link">Open Popup</a>
<table>
<tr width="10%">
<td>
<TEXTAREA name="text1" id="text1" rows="15" cols="65" onscroll="sync();" spellcheck="false"></TEXTAREA>
</td>
<td>
<TEXTAREA Name="text2" id="text2" rows="15" cols="65" spellcheck="false"></TEXTAREA>
</td>
</tr>
<tr width="90%">
<td></td>
</tr>
</table>
<input type="button" value="Compile" onclick="stat('')"/>
<input type="button" value="Reload Page" onClick="window.location.href=window.location.href">
参见例如。 http://stackoverflow.com/questions/1992142/html-modal-popup/1992405。卡尔:我不认为我们在这里讨论的是自动内联弹出式广告。有一个'打开弹出'链接。 – bobince 2010-01-04 14:48:26