我正在使用document.write()將javascript代碼寫入JavaScript。使用document.write()將結果寫入單獨的頁面
但結果出現在同一頁面,我想在單獨的頁面中顯示結果。
document.write('<table width="1000" border="1">');
document.write('<tr width="1000">');
document.write('<td width="100" bgcolor="#D8D8D8">Country</td>');
document.write('<td width="100" bgcolor="#D8D8D8">MCC</td>');
document.write('<td width="100" bgcolor="#D8D8D8">MNC</td>');
document.write('<td width="100" bgcolor="#D8D8D8">Network</td>');
document.write('<td width="100" bgcolor="#D8D8D8">Old Price</td>');
document.write('<td width="100" bgcolor="#D8D8D8">Current Price</td>');
document.write('<td width="100" bgcolor="#D8D8D8">Effective</td>');
document.write('<td width="100" bgcolor="#D8D8D8">Status</td>');
document.write('</tr>');
document.write('</table>');
因此,此表格正在網頁中顯示,我希望此結果顯示在另一個網頁上。
謝謝先進。
,whay你在寫'document.write' – 2012-07-09 11:31:12