I wanted to show two buttons called "A" and "B" in a simple EXT js panel. When a button "A" is clicked, i need to show an IFrameA and when the button "B" is clicked i need to show IFrameB.

How can i add conditions here. Could any one help me on this?

var panel = new Ext.Panel({
renderTo: '#divName#',
html : "<iframe src="http://www/google.com" width='800' height='300'></iframe>"