开发者

Firefox AddOn - Backbutton Cleanup

We just work on a firefox addon which loads several pages via the urlbar.

Unfortunately some entries there don't belong to the backbutton list + we do not wa开发者_Python百科nt to clutter the backbutton.

So how to prevent Firefox from saving a siteload in the backbutton list? or delete it? history -1?

thank you!


If you're using loadURI, you can use the nsIWebNavigation.LOAD_FLAGS_REPLACE_HISTORY flag to make the new page overwrite the existing history entry rather than creating a new one. If you're setting content.location, use content.location.replace() instead.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜