in4mation ... organized


A periodic Section maintained by Pramod S Nair

50. A Bookmarklet that highlights a user selected element

Posted on WisdomBay @ 10:06 PM 10-03-2006 | Post by Pramod S Nair

This Bookmarklet draws a border around all the elements selected by a user. If user selects img tag then all images in the current page is highlighted by a border around it.

How to Install :
1. Copy the code given above to clipboard.
2. Add a new entry to your Favorites menu.
3. Take the property of the newly added Bookmark by right clicking on it from Favorites menu and paste the copied code in to the URL textbox in the resultant property box.
4. Press Ok. (If an warning message is shown regarding Javascript Protocol, continue with the Yes button)
5. Now if you need to highlight all the instances of an element, use this bookmarklet.