Need expert HELP or just HELP

Can someone tell me if this is the only thing I need to get this URL link to work? for a button link. Do I need to have the button set for export action script in the linkage menu or anything like that?

I’ve also tried this as frame action and it will not work that way either ( with function)… I just need to be pointed in the right direction it would help!
[FONT=Courier New][LEFT][COLOR=#0000FF]on[/COLOR] COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000FF]getURL[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#000000]}

[/COLOR]
[/LEFT]
[/FONT]