开发者

Window.open + Mobile Devices + Canvas == Not working?

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开发者_C百科 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?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜