可以搜索引擎读取jquery动作 [英] can search engine read jquery action

查看:154
本文介绍了可以搜索引擎读取jquery动作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要一个包含iframe内容的弹出div.

当我使用jquery创建搜索引擎时,搜索引擎可以读取此信息吗?

或者,有没有办法检测服务器端的搜索引擎并删除此弹出窗口的选项?

解决方案

最好的方法是正常降级,例如通过使用标准

<a id='mylink' href='xyz.html'>

链接指向在弹出窗口中打开的资源. 然后,您将JQuery代码添加到链接中,使它在弹出窗口中打开.

这样,即使没有打开JavaScript的用户也可以访问您的弹出窗口.

大多数Lightbox克隆(例如 Thickbox 都是这样工作的.) >

I want to have a popup div with iframe content.

Can search engines read this when I'm using jquery to create it?

Alternatively, is there a way to detect a search engine on the server side and remove the option of this popup?

解决方案

The best way would be to degrade gracefully, e.g. by using a standard

<a id='mylink' href='xyz.html'>

link that points to the resource that is opened in the popup. You would then add the JQuery code to the link, causing it to open in the pop-up.

That way, even users that do not have JavaScript turned on can access your popup.

Most Lightbox clones like Thickbox work that way.

这篇关于可以搜索引擎读取jquery动作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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