07-18-2010, 12:33 PM
I dont want to select the text in a textbox ! I want it in the whole .html i'm currently viewing.
07-19-2010, 06:57 PM
Not really, though you can perhaps get the same *effect*. For example, you could (in MSIE at least, not sure about other browsers) copy all the HTML into the clipboard. Effectively, doing CTRL-A CTRL-C.
07-19-2010, 08:47 PM
In IE you have document.body.createTextRange().
07-19-2010, 10:17 PM
Ahhh...didn't realize a text range could include entire body. Nice.
Of course, still an IE only answer.
07-20-2010, 08:32 PM
Hi guys , thanks for the reply. I actually had to change de structure of me website so that code i wanted became obsolete for now .. i want to refresh only a text area box, any ideas if this is possible?
07-20-2010, 08:42 PM
document.NameOfForm.NameOfTextArea.value = "whatever you want";
I don't see what "refresh a text area box" has to do with "select all"???