I am new to HTMLB, question
....
Button myButton = new Button("submitButton");
myButton.setOnClick("sendName");
myButton.setText("Go to Yahoo");
myButton.setTooltip("Click here to go to Yahoo.");
....
the implementation of onSendName
public void onSendName(Event myName) throws PageException {
String url = "http://www.yahoo.com";
Link lk = new Link("mylink", "yahoo");
lk.setReference("http://www.yahoo.com");
lk.setTarget("_blank");
??????? now what???
//How do I get to the link?
Please help fill in, appreciate:
}
If this is the not the right way, any other way to achieve this?
thanks much.
Dave Wang