[Firefox]How to add a link to the bookmark using javascript?

Y

YeDingding

Many tutorials introduced a way to add a link to the bookmark, that
is, window.sidebar.addPanel(title, url, ""). But i found that the url
must be started with "http/ftp/https" either.

My link is started with "javascript:", a simple tool integrated with
my site. I want to let use can add the link to their bookmark. But
window.sidebar.addPanel() just complained that "not the supported
protocl".

What should i do? thanks for your help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top