# Input Text Box Reset?

**URL:** https://forum.kirupa.com/t/input-text-box-reset/120059
**Category:** Uncategorized
**Created:** [August 20, 2004, 8:54am UTC](https://forum.kirupa.com/t/input-text-box-reset/120059 "2004-08-20T08:54:18Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![B3NKobe](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@B3NKobe](https://forum.kirupa.com/u/B3NKobe)
#### Post date: [August 20, 2004, 8:54am UTC](https://forum.kirupa.com/t/input-text-box-reset/120059/1 "2004-08-20T08:54:18Z")

</div>

Hi - i have a input text box which i use so u can input text, is there a script i can put on a button which will clear what is in the text box?

Ben…

---

<div class="post-metadata">

### Author: ![rysolag](https://avatars.discourse-cdn.com/v4/letter/r/ba8739/32.png) [@rysolag](https://forum.kirupa.com/u/rysolag)
#### Post date: [August 20, 2004, 9:22am UTC](https://forum.kirupa.com/t/input-text-box-reset/120059/2 "2004-08-20T09:22:40Z")

</div>

[AS]  
myBut.onRelease = function()  
{  
myText.text = “”;  
};  
[/AS]

---

<div class="post-metadata">

### Author: ![sky\_vault](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@sky\_vault](https://forum.kirupa.com/u/sky_vault)
#### Post date: [August 20, 2004, 9:42am UTC](https://forum.kirupa.com/t/input-text-box-reset/120059/3 "2004-08-20T09:42:13Z")

</div>

give your input text box an instance name  
for this example lets say : [color=yellowgreen]inputTxt[/color]

[color=black]then on your reset button place this code:[/color]

```auto
on(press){
inputTxt.text = "";
} 

```

this is but one of many ways to do this(-:
