I was writting a Ubiquity command but I have 0 expriece on JS. How to open an url (http://www.stackoverflow.com for example ) using JS?
EDIT:
Thanks you all, I believe you are correct, but with following code I was not be able to jump to so. It might be something related with Ubiquity but It was declared to be JS.
CmdUtils.CreateCommand({
names: ["so"],
preview: "go to stackoverflow",
execute: function so_execute() {
     displayMessage("Hello, World!");
     window.open('http://www.stackoverflow.com', 'dialog');
    //neither other two method will work
}
});