Io scrivo così. COrregimi se sbaglio:

on (press) {
getURL("http://www.html.it");
}