Click here to Skip to main content
15,886,036 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear all,

I am trying to build an extension for Firefox which blocks the navigation to certain websites. In IE, its very simple since we have the BEFORENAVIGATE2 event which is fired before the navigation to any new URL. However, in javascript we don't have this luxurious option. So, how can i catch the URL being navigated to BEFORE the page being loaded, then decide whether to navigate to it or block it?!

Thanks in advance!
Posted

1 solution

I searched for beforenavigate2 firefox[^] and this[^] was the first result. I guess it's what your are looking for.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900