In the previous post we saw what are bookmarklets and how to create Javascript Bookmarklets in Google Chrome. If you missed that then read above article on how to create Bookmarklet ?

In this article we are going to see how to create javascript bookmarklet in Mozilla Firefox browser.

We will use following javascript code for this.

alert(“Hi, How are you ?”);

Lets start.

How to Create Javascript Bookmarklet in Mozilla Firefox ?

  1. To create a bookmarklet in firefox, make sure your favorites bar is visible on screen.
  2. Right click on favorites bar and click on “New Bookmark…” option.
  3. It will show a popup like this one
Firefox Create Javascript Bookmarklet
Firefox Create Javascript Bookmarklet
  1. We will follow same procedure what we followed for creating a bookmarklet in google chrome.
  2. In the Name tab, enter the name of your bookmark.
  3. Now in Location part we will put our Javascript code prepended by “javascript:” and we will create a simple function which we will call.
  4. So now our final Location will be
javascript:function test() {alert('Hi, How are you ?');} test();
Tutorial to Create Javascript Bookmarklet in Firefox
Tutorial to Create Javascript Bookmarklet in Firefox
  1. Click Save and we are done creating our Javascript Bookmarklet for Firefox browser.

Yes. Its very simple to create bookmarklet in Mozilla Firefox Browser. It can used to simplify lot of stuff like avoid entering form details, remove images from page after loading etc.

Please share this with your friends if you think its useful.