# getURL - want it to work outside of same domain

**URL:** <https://forum.kirupa.com/t/geturl-want-it-to-work-outside-of-same-domain/248350>\
**Category:** Uncategorized\
**Created:** [January 7, 2008, 12:37pm UTC](https://forum.kirupa.com/t/geturl-want-it-to-work-outside-of-same-domain/248350 "2008-01-07T12:37:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![reneco](https://avatars.discourse-cdn.com/v4/letter/r/e9bcb4/32.png) [@reneco](https://forum.kirupa.com/u/reneco)\
**Post date:** [January 7, 2008, 12:37pm UTC](https://forum.kirupa.com/t/geturl-want-it-to-work-outside-of-same-domain/248350/1 "2008-01-07T12:37:50Z")

</div>

Hi

I’ve got a problem with getURL, it works fine tested locally.

\_root.cb\_mc.url\_mc.onRelease = function() {  
getURL(“[http://www.mysite.com](http://www.mysite.com)”, “\_blank”);  
};

However when testing from the hosting server a new window opens fine but the index URL is added in front of the target URL, like so:

[http://host.com/www.mysite.com](http://host.com/www.mysite.com)

and as the link functions as a relative link to the main site rather than an external absolute URL, it doesn’t work!

Any ideas how to fix this?  
I have added to the index HTML “allowScriptAccess” value=“always”.

Thanks

Rene
