views:

85

answers:

1

when i select some text from the browser, is there anyway i can get the selected html instead of just the plain text for firefox using javascript.

Let me know if any one did this before.

--vamsi

+1  A: 

Select text, right click, select "View Selection Source".

mswebersd
And I didn't realize that people were commenting instead of answering. What's up with that?
mswebersd
This answer isn't using JavaScript...
Jordan Ryan Moore
i am trying to achieve this by javascript or by xul or by some other program.
vamsivanka