hi there,
i am building a firefox extension for my final project. i am stuck at the last leg. i need a javascript command that gets two words before, and two words after a highlighted word (a window of 5 words) into my program. i can get the highlighted word, but not the two words before n two words after in the sentence.
i have tried googling but no luck. i wonder if anyone can help me urgently because i am running out of time.
thanks :)