A way to observe url in urlbar of firefox, and get an event every time it changes

前端 未结 2 492
情话喂你
情话喂你 2021-01-21 21:53

I need it for my firefox extension. I don\'t care about waiting the page load completely, I want only observe URL and get an event every time it changes, also when I do history

相关标签:
2条回答
  • 2021-01-21 22:18

    SWFAddress has a Javascript library that lets you do just that.

    0 讨论(0)
  • 2021-01-21 22:23

    https://developer.mozilla.org/en/Code_snippets/Progress_Listeners#Example.3a_Notification_when_the_value_in_Address_Bar_changes

    Also How can i check if url of current browser tab is changed?

    0 讨论(0)
提交回复
热议问题