# Functions and sub-functions

**URL:** <https://forum.kirupa.com/t/functions-and-sub-functions/54780>\
**Category:** Uncategorized\
**Created:** [June 17, 2004, 2:05pm UTC](https://forum.kirupa.com/t/functions-and-sub-functions/54780 "2004-06-17T14:05:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bodyvisual](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/bodyvisual/32/564_2.png) [@bodyvisual](https://forum.kirupa.com/u/bodyvisual)\
**Post date:** [June 17, 2004, 2:05pm UTC](https://forum.kirupa.com/t/functions-and-sub-functions/54780/1 "2004-06-17T14:05:38Z")

</div>

I think i’m a little confused about functions.

I have one function that puts text in a text field and makes a button goto a url onRelease.

The code is like this:

```auto
 item.onRelease = function() {
	myButton.onRelease = function() {
getURL("http://google.com", "_blank");
}
	talk = this.txt;
}

```

the only problem is that the button doesn’t work onRelease. i think that it is because there are too many functions there, but at the same time, i think it’s just me…

any advice?

thx in advance.
