Window.open not working in geolocation callback

I have a link on the page that should open a new tab and show the driving directions on Google Maps from users location via HTML5 Geolocation to point B. I installed the jsbin of how I was trying to implement this. Here's the link: JSBIN .

I'm guessing this is because I'm trying to call window.open in the callback? If I try the code on the desktop, it tries to open a new window, but I need a new tab. I tried adding "_blank", but that doesn't do the trick ... Also, this should work on a responsive / mobile layout, where the user can run iOS and Mobile Safari, and of course, you can't open the popup ...

Thanks in advance!

+3
javascript google-chrome popup


source to share


No one has answered this question yet

See similar questions:

3
JS: open new tab from fn callback (open in new window, no tab)

or similar:

7649
How does JavaScript blocking work?
1949
How does JavaScript.prototype work?
1690
How does data binding work in AngularJS?
1204
How do I access the correct `this` inside the callback?
23
javascript window.open in safari
2
window.open () and target = "_blank" don't work together in IE
2
javascript window.open doesn't work in safari and chrome
1
Is there a way to determine if the browser window is a popup or just a new window using target = "_blank"?
1
overriding window.open stops href to work
0
jquery window.open in ajax success blocked as popup



All Articles
Loading...
X
Show
Funny
Dev
Pics