Mozilla firefox problem in javascript -


how can (if)any text selected in textbox , want in variable of javascript.... mozilla firefox...? above description not enough let me give definition.. extension of firefox extension double clicks word webpage , finds possible meaning database... user can write in textbox , double click same finding meaning.. please suggest way complete selection textbox's selected text....? in addition using dblclick event handler dont suggest solution.... problem web page can site's webpage textarea or control specific tho page how slice text ...thanxx in advance....

you can use document.getselection() returns selection object containing highlighted text in document. however, calling @ right time can tricky. can't onclick handler on button, instance, because time onclick handler fires, selection's focus has been removed text , moved button.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -