html链接在新窗口中打开,而不是在小工具中打开 [英] html link opens in new window instead of opening in gadget

查看:94
本文介绍了html链接在新窗口中打开,而不是在小工具中打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我将第二个html文件压缩到小工具中并链接到该小工具,如下所示:

if i zip a second html file into the gadget and link to it like that:

<a href="Menu.html">Link</a>



链接会在小工具中打开,

但!如果我链接到这样的页面,它将在新窗口中打开



the link opens in the gadget,

BUT! if i link to the page like that it opens in a new window

<a href="C:\...\Menu.html">Link</a>

(如果我在浏览器中对其进行测试,则它会在同一窗口中打开,但在小工具中不起作用)

有任何建议吗?

(if i test it in a browser it opens in the same window, but it doesnt work in the gadget)

any suggestions?

推荐答案

这不是有效的href:"C:\ ...".如果可以在本地系统上工作,但不能在Web上工作.

现在,由于严重的原因,Wikipedia目前处于停电状态,请参阅:
http://en.wikipedia.org/wiki/Main_Page [ http://en.wikipedia.org/wiki/Wikipedia:SOPA_initiative/Learn_more [ ^ ].

很快它将恢复操作. (我希望Wikipedia以及Internet的自由都可以.)当它回来时,请看Wikipedia的文章"URL".您将看到如何在Web上使用URL.

另请参阅我过去的答案:
图像控件在给予时不显示图像imageurl [ ^ ],
http ://api.codeproject.com/Answers/192434/How-to-access-a-file-from-html-folder-of-root-dire/?cmt = 97164#answer1 [ ^ ].

至于其他问题,您需要制作一些(极简主义!)代码示例以说明问题并解释您要实现的目标.

—SA
This is not a valid href: "C:\...". If can work on a local system, but not on Web.

Now, Wikipedia is on the blackout right now, for a serious reason, see:
http://en.wikipedia.org/wiki/Main_Page[^],
http://en.wikipedia.org/wiki/Wikipedia:SOPA_initiative/Learn_more[^].

Very soon it will resume the operation. (I hope Wikipedia will be fine, as well as the Internet freedom.) When it''s back, look at the Wikipedia article "URL"; you will see how to use URLs on the Web.

See also my past answers:
image control not displaying image when giving imageurl[^],
http://api.codeproject.com/Answers/192434/How-to-access-a-file-from-html-folder-of-root-dire/?cmt=97164#answer1[^].

As to the other problems, you need to make some (minimalistic!) code sample to manifest the problem and explain what exactly do you want to achieve.

—SA


这篇关于html链接在新窗口中打开,而不是在小工具中打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆