Benjamin Verhaegen
Benjamin Verhaegen

Reputation: 1

Get url to mozilla sidebar with javascript

I'm trying to develop a mozilla sidebar. I would like to send the url of the current webpage to my sidebar so i can do something with it.

I've tried with window.location.hostname and other stuff and the only thing i get is the location of my sidebar. Something like this: jid1-r7ctykgwy6iyza-at-jetpack

EDIT: i would like to have a button to make bookmarks in my sidebar

Could somebody please help me with that? thanks

Upvotes: 0

Views: 96

Answers (1)

user3155288
user3155288

Reputation: 11

The firefox sidebar is limited to displaying local pages only. You'll have to create an html page to display in the sidebar, then use messaging from your addin to alter that html pages's contents.

Upvotes: 0

Related Questions