在新窗口中打开iframe中的链接 [英] Make links inside an iframe open in a new window

查看:110
本文介绍了在新窗口中打开iframe中的链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在一个iframe中显示一个地图,它有一个针,在鼠标悬停显示某些公司的一些信息,事情是一旦你点击的链接,该页面打开在iframe中,废墟的经验,所以我想知道是否有可能使一个iframe中的链接在新窗口中打开,而不是使用jquery或类似的东西。



代码我有atm是

http://www.jsfiddle.net/rkd59 / 1 /



编辑:至少在iframe中捕获一次点击,因此我可能会调整iframe的大小。

解决方案

您需要某种开放API才能正常完成此操作, Eniro 根据此网页(瑞典语)不提供。



我建议您改用 Google Maps API v3 。我已在 jsFiddle 示例上创建了类似于Eniro的示例。



我会很乐意为您提供更多帮助,所以请立即离开!


I'm trying to display an map inside an iframe that has a needle which on mouseover shows some information about a certain company, the thing is once you click the link the page opens up inside the iframe which ruins the experience, so i was wondering is it possible to make the links inside an iframe open up in a new window instead perhaps using jquery or something similiar?

the code i have atm is

http://www.jsfiddle.net/rkd59/1/

Edit: the very least capture a click within the iframe so i might resize the iframe

解决方案

You will need some kind of open API to do this properly, and Eniro doesn't provide one according to this page (in Swedish).

I would recommend you to use the Google Maps API v3 instead. I've made an example on jsFiddle that looks similar to that of Eniro.

I'll gladly give you more help with this, so just ask away!

这篇关于在新窗口中打开iframe中的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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