View Full Version : hyperlink from a messagebox button

18 Nov 2010, 1:21 PM
I'm experimenting with the Ext.MessageBox example and I want a webpage to open when the user clicks on the 'No' button. However, being new to this API, it is not obvious to me how I am supposed to accomplish what seems like a simple task. Here is the function that is called from MessageBox:

function showResult(btn){
if (btn === 'yes'){
Ext.example.msg('Button Click', 'Tim clicked the {0} button', btn);
}else if (btn === 'no'){
//open http://www.yahoo.com


18 Nov 2010, 1:27 PM
Never mind.