View Full Version : Modifying the DOM

03-17-2009, 10:44 AM

I'd really appreciate any insight into the following:

I am creating an extension in Firefox whereby the user can highlight several texts on a web page. A button should appear just above the beginning of the highlighted text which when clicked will display an input textbox where the user can add comments.This textbox then can be closed whilst retaining the information.

Basically, I need some info on how to create a button on top of the selected text and when clicked display an input text box.

Thank you

Kind regards


03-17-2009, 10:15 PM
put it in a div and control visibility.



03-18-2009, 12:31 AM
thanks alot for the information regarding creating a text box and your promt reply.

How would I create a button just on top of the highlighted text. I guess I need to get some co-ordinates right?

03-20-2009, 04:27 PM
any idea guys/girls?

Basically I want to create the button just on top of the selected text on any webpage I access?

Thanks for your input