Thank you Kasyan.
I have one more question for you.
I created a edittext field using scriptUI and i want to get the data from that textfield.
I use variable editcontets to get the data but in this case it not working. I am posting my script. Please let me know if there is any thing wrong i am doing.
when you run the script whatevery data in that text field will come o the variable amit.
When i am trying to run this script i am getting alert as "undefined".
I do not why please help me in this matter as well.