Infinite menu actions (url) need quick help!

what script would be added to each button to go to a different site?? would it just be
[AS]on (press) {
getURL(“http://theurl.com”);
}
[/AS]
??? am i right? im getting 2 windows when i press it though…is there a better code for it?