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
  • AlexKaras's avatar
    9 years ago

    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]")