我需要在模態窗口中獲取下面的內容。今天我一直在嘗試這一點。 在模態窗口打開後,無法訪問背景正文內容,在重載頁面模式彈出窗口應該關閉,保持文本區域的內容不變。打開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