1

这是我的信息窗口代码:

<div class='googft-info-window' align='center' style='font-family: sans-serif'>
<b>{CLIENT NAME}</b> <br>
<i>{CITY}</i><p>
<font color="red"><b>BONUS: </b>{BONUS}</font color> <br>
<a href="{WEBSITE}"><i>Learn More</i></a></div>

当用户单击“了解更多”时,我希望这会打开另一个包含更多信息的页面。相反,实际发生的是在地图框架内跟踪链接。

我希望该链接将用户带到网站上的另一个页面。我认为这个线程 Inserting a rails link into a Google Maps infowindow 回答了我的问题,但我并不真正理解所有附加代码。

我对 FT 很陌生,很欣赏这里的所有知识。

在此先感谢,安德里亚

4

2 回答 2

0

With valid (X)HTML as far as I know there is no way to determine in- or out-of-frame links. How ever if you're willing to drop validity you can use the anchor target attribute set to "_top"

Or if you want you can use Javascript window.top.location; but that will end up causing unwanted behavior for those without Javascript

于 2012-02-16T03:48:07.130 回答
0

你可以这样说:

<a href="{WEBSITE}" target="_blank">Learn More</a>

于 2012-02-18T00:18:09.453 回答