Internet Explorer上的书签API [重复]

时间:2022-04-02 23:13:57

This question already has an answer here:

这个问题在这里已有答案:

Is there any API on Internet Explorer to retrieve the users' bookmarks with javascript ?

Internet Explorer上是否有任何API可以使用javascript检索用户的书签?

thanks,

谢谢,

Bruno

布鲁诺

1 个解决方案

#1


1  

No. That would be a huge security hole. You could do it with ActiveX if you are, for example, working in a corporate intranet environment on IE, or with an extension if you are targeting a specific browser (such as Firefox or Chrome).

不,那将是一个巨大的安全漏洞。例如,如果您在IE上的企业Intranet环境中工作,则可以使用ActiveX执行此操作;如果您要定位特定浏览器(例如Firefox或Chrome),则可以使用扩展程序。

EDIT Reviewing your other questions, I realise you are asking if there is a way of doing it specifically for IE, with the user's permission. You could write an ActiveX control which get's the information for you. See http://www.codeproject.com/KB/shell/iefavorites.aspx for an example. I don't know of a way to do it through JavaScript directly though.

编辑回顾您的其他问题,我意识到您正在询问是否有一种方法可以在用户的​​许可下专门为IE做这件事。您可以编写一个ActiveX控件来获取您的信息。有关示例,请参见http://www.codeproject.com/KB/shell/iefavorites.aspx。我不知道通过JavaScript直接做到这一点的方法。

#1


1  

No. That would be a huge security hole. You could do it with ActiveX if you are, for example, working in a corporate intranet environment on IE, or with an extension if you are targeting a specific browser (such as Firefox or Chrome).

不,那将是一个巨大的安全漏洞。例如,如果您在IE上的企业Intranet环境中工作,则可以使用ActiveX执行此操作;如果您要定位特定浏览器(例如Firefox或Chrome),则可以使用扩展程序。

EDIT Reviewing your other questions, I realise you are asking if there is a way of doing it specifically for IE, with the user's permission. You could write an ActiveX control which get's the information for you. See http://www.codeproject.com/KB/shell/iefavorites.aspx for an example. I don't know of a way to do it through JavaScript directly though.

编辑回顾您的其他问题,我意识到您正在询问是否有一种方法可以在用户的​​许可下专门为IE做这件事。您可以编写一个ActiveX控件来获取您的信息。有关示例,请参见http://www.codeproject.com/KB/shell/iefavorites.aspx。我不知道通过JavaScript直接做到这一点的方法。