2016-05-16 56 views
0

我正試圖打開覆蓋網址的ontouch網址。 覆蓋是上的iframe頂部(其容納URL)網址未在iPhone上打開

var initiatelandingpage = function(){ 
     document.getElementById('overlay4527').style.display = 'none'; 
     setTimeout(function(){ 
     document.getElementById('overlay4527').style.display = 'block'; 
    },500); 
}; 

ontouchstart事件,我躲在疊加和在500ms的其正確觸發的URL IOS設備上

以上相同顯示它,當我嘗試做ontouchend事件,不知何故該網址是不是在iOS設備上打開

因爲這是爲什麼發生這種情況,並希望爲相同的修復。

jsfiddle for the same

回答

0

根據IOS版本使用的是,以後的版本不支持iframe了,據我所知

+0

爲什麼它在touchstart然後工作? – Nyfer

+0

@Nyfer:網址是https保護嗎? –

+0

如果這是網址:http://m.nike.com/in/en_gb/c/running/,那麼無論它必須是https或在您的info.plist文件中進行更改 –