csam0003
05-20-2009, 03:42 PM
Hi,
Can someone please tell me how I can get the PREVIOUS number of occurences of a text selected in the webpage.I am using Firefox and window.find() method doesnt seem the right approach,as it scrolls the page.
For example:
The dog and the cat and the house and the mouse.
If I select "the" (in Bold), it should return the value 2!
Kind regards
Chris
Can someone please tell me how I can get the PREVIOUS number of occurences of a text selected in the webpage.I am using Firefox and window.find() method doesnt seem the right approach,as it scrolls the page.
For example:
The dog and the cat and the house and the mouse.
If I select "the" (in Bold), it should return the value 2!
Kind regards
Chris