如何从网站本身
问题描述:
我已经从我的网页下面的标记(说的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不起作用。
任何建议使这项工作?
感谢
答
不知道正是你想要的,但如果你要打开新的标签/窗口页面,用target="_blank"
,但是,如果你希望它在同一个窗口中打开,只留下了什么target="_blank"
部分来自链接。
+0
嗨囊,尝试同样没有工作。谢谢 – bonskijr 2010-07-07 12:34:29
可能不是问题,但在您的示例中,第三个链接的ID与第二个链接的ID相同。 – Vinze 2010-07-07 11:37:54
感谢更新,但是没有问题 – bonskijr 2010-07-07 13:41:53