I am trying to open a new tab with a specific url.
When i enter
$window.open('www.example', '_blank')
i do get a new tab, just like i wanted but instead of going to: www.example
im directed to: http://localhost:8080/www.example
It concatinates my input with my current address
How do i open a new tab with exactly the url i put in the input?
Thanks!
I am trying to open a new tab with a specific url.
When i enter
$window.open('www.example.', '_blank')
i do get a new tab, just like i wanted but instead of going to: www.example.
im directed to: http://localhost:8080/www.example.
It concatinates my input with my current address
How do i open a new tab with exactly the url i put in the input?
Thanks!
Share Improve this question asked Jul 15, 2015 at 13:51 JonathanJonathan 231 silver badge3 bronze badges1 Answer
Reset to default 4Did you try $window.open('http://www.example.', '_blank')
(that is, add http://
so it's not interpreted as a relative URL)?