Windows 10 已于2025年10月14日停止支持。如果您正在使用 Windows 10,参见 这篇文章

Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解
已存档

I need to create a bookmark script

the-edmeister 已回复
alanrosenauer

I need to create a bookmark script for our website, but all that I can seem to find is a script that bookmarks to a sidebar, instead of the entire page.

I need to create a bookmark script for our website, but all that I can seem to find is a script that bookmarks to a sidebar, instead of the entire page.

所有回复 (5)

You can't write a script to bookmark a website in Firefox. You can instruct users to press Ctrl+D to bookmark your website.

There is no such thing in this world as "Can't".

Users will always have to confirm that action.

See https://developer.mozilla.org/en/DOM/window.sidebar

javascript: window.sidebar.addPanel("Mozilla Support", "https://support.mozilla.com/", "");

Cor-el,

This is what creates the side panel, instead of opening the page in the full page. It seems pretty strange that Firefox would create a browser that would limit the ability of people to easily go back to a page that interests them.

Almost like they created this 'sidebar' ability just to tick off developers (and users alike). So not like Firefox to do this.

alanrosena...

That's a Bug from the days of Netscape. There was a Mozilla Bug filed about that issue like 8 years ago, and the developers WONTFIX'd it due to concerns that it could be exploited if fixed.

I have found three different JavaScripts for web pages for the "Bookmark this Page" action; two don't work in Netscape/Mozilla and the third has that unpleasant "sidebar" affect.