View Full Version : Open link in a new tab

10 Feb 2014, 8:14 PM
Since I wasn't able to display the map inside the system, I decided to create a separate php file to view the map. But i want to open the link in a new tab not in the same window. Below is the code I used for the link.

{ xtype: 'box',
autoEl: {tag: 'a', href: 'http://localhost/dlti/HTML/Main.html', html: 'View Map'},

10 Feb 2014, 9:44 PM
just add target:'_blank' to your autoEl

{tag: 'a', target:'_blank', href: 'http://localhost/dlti/HTML/Main.html', html: 'View Map'}

10 Feb 2014, 9:53 PM
Thank youu!