专注于iframe的iframe

时间:2016-10-18 13:49:03

标签: html internet-explorer iframe

我的网站上有一个iframe弹出支付门户网站。当他们到达这个页面时,我想让iframe成为焦点,这样他们就可以像指示一样刷卡。

我已经尝试了几种不同的方式来专注于iframe,但似乎没有任何工作。

$('iframe').get(0).contentWindow.focus();
$('iframe').focus();
$('iframe').get(0).contentWindow.document.body.focus();

$('iframe').focus();在chrome和firefox中运行良好,但在ie。

中完全没有

有什么想法吗?我缺少的东西?

0 个答案:

没有答案