0
我已經從我的網頁下面的標記(說的test.html)打開網絡/文件相關網頁:如何從網站本身
<html>
<body>
<a id="link1" target = "_new" href="http://www.yahoo.com">Go to Yahoo</a>
<a id="link2" target = "_new" href="http://www.google.com">Go to Google</a>
<a id="link3" target = "_new" href="file://///server01/localWebPage.html">Go to Local webpage</a>
</body>
<html>
這將打開一個標籤/窗口(和重用因此_新目標),它通過文件|打開|定位到test.html位置打開網頁時起作用。但是,當它使用Web服務器(例如IIS)運行時。通過http://localhost/test.html運行此操作對localWebPage.html不起作用。
任何建議使這項工作?
感謝
可能不是問題,但在您的示例中,第三個鏈接的ID與第二個鏈接的ID相同。 – Vinze 2010-07-07 11:37:54
感謝更新,但是沒有問題 – bonskijr 2010-07-07 13:41:53