js force page into iframe - will google crawl it?
I have a script that reloads a blog page if its not in an iframe on my site. Will this interfere with search engines crawling the blog?
My gut says that this script won't keep the blog from being crawled, but it will interfere with any resulting links generated by search engines as following them, as these links will dump the user with js, into the 'top level' of the blog, and not the page they were after. To solve this would require some fancy 开发者_JS百科cookie work.
<script type="text/javascript">
if (self.location == top.location && location.search.substring(1) != 'nf')
top.location.href = 'http://www.parentSite.co.uk/cms/section/iframe/'
</script>
what say ye?
Search bots, as I understand it, do not interpret JavaScript at all, so I think that's fine.
Although I'm not sure why you'd want to do this. It seems as though it would interfere with your users' experience quite a bit. Is there no way that you can load the content you want into the iframe on the parent page? perhaps with this nf
parameter in your query string?
精彩评论