I know that $window.open() opens a new tab with the url specified but is there a way to open a new Window? Did some digging around and couldn't find anything.
-
2Whether a tab or a window opens is up to the browser (or the user's preferences).isherwood– isherwood2014-09-09 20:47:45 +00:00Commented Sep 9, 2014 at 20:47
-
It's actually not, I figured out how to open a tab AND/OR a window. To open a tab, you'd use $window.open(url). To open a new window, you'd use $window.open(url, window name, attribute, attribute).Justin Case– Justin Case2014-09-09 21:26:52 +00:00Commented Sep 9, 2014 at 21:26
-
1Don't force me to open a new window.Blackhole– Blackhole2014-09-09 21:39:50 +00:00Commented Sep 9, 2014 at 21:39
-
Blackhole, totally understand the article and i agree with it to the fullest extent but unfortunately the assignment is to "open a new window" and not a tab. Great advice though thank youJustin Case– Justin Case2014-09-09 22:47:45 +00:00Commented Sep 9, 2014 at 22:47
-
I stand corrected. I wonder, though, whether the assignment author intended to be so explicit.isherwood– isherwood2014-09-10 13:36:16 +00:00Commented Sep 10, 2014 at 13:36
|
Show 1 more comment
1 Answer
When using the third parameter of window.open method, you get a window.
Exemple :
window.open('http://www.stackoverflow.com', '_blank', 'width=500, height=400')