开发者

What event fires to an firefox extension when the back button is selected or history item is selected

My extension needs to know that the tab is displaying something from the history rather than the latest loaded document.

onload doe开发者_开发知识库sn't seem to be the right event. It doesn't always fire.


Use the pageshow event, it fires after the onload event and has a parameter called persisted that will be set to true when the page is loaded from the cache.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜