<html><head></head><body> This is the body text. From here I will select text <input type="button" name="test" id="t1" value="push"> </body></html>
I want that when I select any text in the body section of the webpage and press push button, the selected text will be shown in a alert window. How can I do this??