AhammadaliPK AhammadaliPK - 4 months ago 7
AngularJS Question

how to open a new browser insatnce not tab with angualrjs

I need to open a new window when clicking on a button ,i used this way

$scope.openInNewWindow = function () {
$window.open('/newwindow.html', '_blank');
}


but it always opens a new tab, but i need a new browser instance

Answer

Try this http://plnkr.co/edit/f50fWHnLBC3Y43mx6iuO?p=preview

$window.open('/newwindow.html',"_blank", "toolbar=yes,scrollbars=yes, resizable=yes, top=500, left=500, width=400, height=400");