# Asfunction text problem!

**URL:** <https://forum.kirupa.com/t/asfunction-text-problem/122122>\
**Category:** Uncategorized\
**Created:** [September 10, 2004, 1:43pm UTC](https://forum.kirupa.com/t/asfunction-text-problem/122122 "2004-09-10T13:43:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Inflicted](https://avatars.discourse-cdn.com/v4/letter/i/82dd89/32.png) [@Inflicted](https://forum.kirupa.com/u/Inflicted)\
**Post date:** [September 10, 2004, 1:43pm UTC](https://forum.kirupa.com/t/asfunction-text-problem/122122/1 "2004-09-10T13:43:44Z")

</div>

I’m loading a text file with:

```auto
<a href="asfunction:_global.direct,home"><font color="#FFFFFF">home 
</font></a>

```

It works, in this example the user gets directed to home.html,  
which is an url from the root directory(index.html).

But I want the user to go to a different url than that of the page’s  
root directory. From [mysite.com](http://mysite.com) to [yoursite.com](http://yoursite.com).  
Tried a couple of things, but they didn’t work.

thanks

This is the AS:

```auto
_global.direct = function(url) {
    getURL(url, "_blank");
};

```
