Forum Discussion

reshma's avatar
reshma
Occasional Contributor
9 years ago
Solved

How can i clear text on Textarea field in IE 8 browser?

I want to select all text in Text area and delete. I tried with testObj.Keys("^A"); method, testObj.Keys("[BS]") but it didn't help me. Thanks Reshma
  • Hi,

     

    I've met with the situation several times that Ctrl-A shortcut was intercepted by some other control and did not work. So I ended up with this code (VBScript):

    Call oControl.SetFocus

    Call oControl.Keys("^[Home][P500]^![End][P500][Del]")

2 Replies

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi,

     

    I've met with the situation several times that Ctrl-A shortcut was intercepted by some other control and did not work. So I ended up with this code (VBScript):

    Call oControl.SetFocus

    Call oControl.Keys("^[Home][P500]^![End][P500][Del]")

  • If Keys() doesn't work, try just simply setting the wText property (or whatever property has the text) to the empty string using SetText().