如何检测我的浏览器使用jquery支持IFRAME但无法找到它 [英] How to detect that my browser support IFRAME using jquery but unable to find it

查看:61
本文介绍了如何检测我的浏览器使用jquery支持IFRAME但无法找到它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想找到我的浏览器支持IFRAME或不使用Jquery。但没有找到任何参考



我尝试过:



以HTML格式保留iframe

< div id =someID> Hello world!< / div>







$('#iframeID')。contents()。find('#someID')。html();



它给我未定义。但我有疑问,我怎么能确定我的浏览器支持IFRAME。



请帮帮我

先谢谢

解决方案

( '#iframeID')。contents()。find('#someID')。html();



它给我未定义。但我有疑问,我怎么能确定我的浏览器支持IFRAME。



请帮帮我

先谢谢


检查iframe是否在那里页面



<前lang =Javascript> 如果


< blockquote>( #iframeID)。length)
{

alert( 您正在测试的元素存在。);


I want to find that my browser support IFRAME or not using Jquery . but no any reference found for that

What I have tried:

Keep Iframe in HTML
<div id="someID">Hello world!</div>



$('#iframeID').contents().find('#someID').html();

it give me undefined . but i have question that how can i identified that my browser support IFRAME .

Please help me in that
Thanks in Advance

解决方案

('#iframeID').contents().find('#someID').html();

it give me undefined . but i have question that how can i identified that my browser support IFRAME .

Please help me in that
Thanks in Advance


Check if iframe is there on the page

if(


("#iframeID").length) { alert("The element you're testing is present." );


这篇关于如何检测我的浏览器使用jquery支持IFRAME但无法找到它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆