Possible Duplicate:
Javascript: I have a custom right-click menu but still want the spellcheck!
Is there a JS property or command to see if a word is underlined in red (ie. needs to be spellchecked) in Firefox?
Ideally, for sample code it would be like... if I right click on a word the is underlined in red it will alert:
//watches for right click action
if(firefox.isUnderlinedForSpellcheck == true) {
//display firefox spellcheck menu
} else {
//perform my action
}
Anyone have any thoughts?