Window.open + Mobile Devices + Canvas == Not working?
10,081
Oddly enough, it seems to work if you give it a size..
var windowSize = "width=" + window.innerWidth + ",height=" + window.innerHeight + ",scrollbars=no";
window.open('http://www.google.com', 'popup', windowSize);
Tested on iOS and Android.
Author by
David Bradbury
I'm David Bradbury - Technology Director and Web Engineer I lover the web and I'm doing what I can to make it a better, more accessible place for everyone.
Updated on June 04, 2022Comments
-
David Bradbury almost 2 years
I have a "button" I've created inside of the element. It is a simple path that detects if you're in it, and if you've clicked it or have your finger on it. If you do, it executes:
window.open("http://www.google.com");
It works great in the browser, but I've tested it on an iPad, Android(2.2) phone, and Android Tablet (3.2) and it will not open a new window.
Here is a jsfiddle I put together demonstrating this:
With Code: http://jsfiddle.net/JgrU4/
Just the Result: http://jsfiddle.net/JgrU4/embedded/result/
Any ideas on how I might accomplish this?