# ActionScript using buttons to open HTML

**URL:** <https://forum.kirupa.com/t/actionscript-using-buttons-to-open-html/303649>\
**Category:** Uncategorized\
**Created:** [January 24, 2010, 9:04am UTC](https://forum.kirupa.com/t/actionscript-using-buttons-to-open-html/303649 "2010-01-24T09:04:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tyoelin](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/tyoelin/32/2737_2.png) [@tyoelin](https://forum.kirupa.com/u/tyoelin)\
**Post date:** [January 24, 2010, 9:04am UTC](https://forum.kirupa.com/t/actionscript-using-buttons-to-open-html/303649/1 "2010-01-24T09:04:53Z")

</div>

I’ve searched tutorials and I’ve gotten the code to ‘work’ both ways (action script on the button itself, as well as calling to it just in the general frame). This is the way I have it currently set up:

fbtn.onRelease=function(){  
getURL(“[www.kirupa.com](http://www.kirupa.com)”, “\_blank”);  
}

This works, but instead of taking me to [www.kirupa.com](http://www.kirupa.com), it actually tries to take me to my own site slash [kirupa.com](http://kirupa.com) (i.e. [www.mysite.com/www.kirupa.com](http://www.mysite.com/www.kirupa.com))

I can’t figure out what I need to do to get it to go only to the URL i specify, do I need to use some kind of root command?

THANK YOU!!
